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
Checked ConcatenatingMediaSource, TimelineQueueNavigator, Player.EventListener documentation and source code.
[REQUIRED] Question
Is it possible to disable Disable autoplay in ConcatenatingMediaSource?
I tried to pause the player in onPositionDiscontinuity (if the reason of discontinuity is DISCONTINUITY_REASON_PERIOD_TRANSITION), but the player still plays like 1-2 seconds of the next source.
The text was updated successfully, but these errors were encountered:
Hi @tonihei,
thanks for linking to the similar question, it didn't show up in my search results.
So if I summarise the linked thread, it's not possible to disable/stop autoplay in ConcatenatingMediaSource before proceeding to next video.
I kindly ask you to consider supporting this case.
My application is similar to YouTube Premium. Video playback in foreground, audio in background.
Why I would still like to use ConcatenatingMediaSource vs. preparing one by one:
Correct media session and notification handling out of the box. If media sources are prepared one by one media notification shows incorrect state of skip to next(>>) action.
I had to extend QueueNavigator, MediaMetadataProvider and add some workarounds to support media notifications.
Example: Player timeline is empty between switching media sources, MediaMetadataProvider can not extract MediaMetadata and MediaController is not able to receive MediaMetadata needed to show in notification. Skipping between items from notification is not smooth.
Build in lazy preparation, nicer transitions between videos.
[REQUIRED] Searched documentation and issues
Checked ConcatenatingMediaSource, TimelineQueueNavigator, Player.EventListener documentation and source code.
[REQUIRED] Question
Is it possible to disable Disable autoplay in ConcatenatingMediaSource?
I tried to pause the player in onPositionDiscontinuity (if the reason of discontinuity is DISCONTINUITY_REASON_PERIOD_TRANSITION), but the player still plays like 1-2 seconds of the next source.
The text was updated successfully, but these errors were encountered: