Class VideoProgressHelper
-
- All Implemented Interfaces:
public final class VideoProgressHelperA helper class responsible for managing video progress visualization.
This class creates and manages a progress bar that shows the current playback progress of a video. It listens to video events and updates the progress bar accordingly, with smooth animations between progress updates.
-
-
Constructor Summary
Constructors Constructor Description VideoProgressHelper(CoroutineScope coroutineScope, RelativeLayout experienceLayout, ProgressConfig progressConfig, SharedFlow<VideoEvent> mediaPlayerFlow)
-
Method Summary
Modifier and Type Method Description final UnitaddProgressBarIndicator()Adds a progress bar indicator to the experience layout if configured to show. -
-
Constructor Detail
-
VideoProgressHelper
VideoProgressHelper(CoroutineScope coroutineScope, RelativeLayout experienceLayout, ProgressConfig progressConfig, SharedFlow<VideoEvent> mediaPlayerFlow)
-
-
Method Detail
-
addProgressBarIndicator
final Unit addProgressBarIndicator()
Adds a progress bar indicator to the experience layout if configured to show.
This method creates a horizontal progress bar, applies the configured styling, adds it to the parent layout, and starts listening for media progress events.
-
-
-
-