You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have a UI that has two sliders which represent the start and end time of a segment of a video. The start and end time are set so that the video loops over the selected segment.
To implement this I tried doing making a Clipping source wrapped in a LoopingMediaSource. It works well when loaded the first time but the sliders on the UI are meant to be changed to loop the video in a dynamically set range. I have a callback every time the start or end times change where I stop the player, build the media source giving a ClippingMediaSource the new start and end times and wrap it in a LoopingMediaSource and then calling player.prepare() with the new source. However I can't make the experience be smooth since the callback is called as the slider is being moved. Each time I am stopping the player and calling prepare on it. Is there any recommended way of doing this?
The text was updated successfully, but these errors were encountered:
I have a UI that has two sliders which represent the start and end time of a segment of a video. The start and end time are set so that the video loops over the selected segment.
To implement this I tried doing making a Clipping source wrapped in a LoopingMediaSource. It works well when loaded the first time but the sliders on the UI are meant to be changed to loop the video in a dynamically set range. I have a callback every time the start or end times change where I stop the player, build the media source giving a ClippingMediaSource the new start and end times and wrap it in a LoopingMediaSource and then calling player.prepare() with the new source. However I can't make the experience be smooth since the callback is called as the slider is being moved. Each time I am stopping the player and calling prepare on it. Is there any recommended way of doing this?
The text was updated successfully, but these errors were encountered: