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 use a ConcatenatingMediaSource. When I call seekTo with the current windowIndex and the duration of the file as positionMs in state STATE_PAUSED and playWhenReady=false I receive two events: onPositionDisconunitywith that frame and onPositionDisconitywith 0 but with the windowIndex increased.
This is problematic as when a user seeks with the seekbar he does not want to go to the next track when the player is paused.
The text was updated successfully, but these errors were encountered:
ojw28
changed the title
SeekTo last positionMs leads to window index incrementing
Seeking to end position when paused causes transition to next period
Feb 13, 2017
Whilst the previous behavior was WAI and had the advantage of
updating the position to be more exact when known, there were
a couple of disadvantages:
1. If seeking to the very end of a period in a playlist when
paused, the position adjustment could trigger a position
discontinuity to the next period.
2. We de-duplicate seeks to the current playback position.
The position adjustment can prevent this from being
effective. This is particularly important with the new
SeekParameters support. When seeking to nearest sync point
it's often possible to de-duplicate seeks, but we cannot
do so if the playback position adjusts away from the sync
point's time.
Issue: #2439
Issue: #2882
-------------
Created by MOE: https://github.com/google/moe
MOE_MIGRATED_REVID=180540736
ExoPlayer 2.2.0
Nexus 5x
Android 7.1.1
I use a
ConcatenatingMediaSource
. When I callseekTo
with the currentwindowIndex
and the duration of the file aspositionMs
in stateSTATE_PAUSED
andplayWhenReady=false
I receive two events:onPositionDisconunity
with that frame andonPositionDisconity
with 0 but with thewindowIndex
increased.This is problematic as when a user seeks with the seekbar he does not want to go to the next track when the player is paused.
The text was updated successfully, but these errors were encountered: