Skip to content

Video Workouts

Video workouts are rendered through WorkoutVideoFragment.

Capabilities

  • Stream workout video content
  • Pause/resume playback
  • Skip forward/backward by 15 seconds

Create the fragment

kotlin
val videoFragment = WorkoutVideoFragment.newInstance(
    workoutContent,   // GraphQL payload
    workoutConfig,    // JSON configuration
    jwtToken          // JWT token
)

Integration notes

  • Use the same GraphQL/JWT preparation flow as classic workouts.
  • Reuse the same text customization keys in the configuration payload.