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
That's the same position set in MediaPeriod.prepare (where it may be removed
in the future).
Having the position at an earlier point is necessary to fix an
issue with lazy preparation in ConcatenatingMediaSource where the prepare
position was assumed to be known but MediaPeriod.prepare hasn't been called
yet.
Issue:#5350
PiperOrigin-RevId: 229756637
That's the same position set in MediaPeriod.prepare (where it may be removed
in the future).
Having the position at an earlier point is necessary to fix an
issue with lazy preparation in ConcatenatingMediaSource where the prepare
position was assumed to be known but MediaPeriod.prepare hasn't been called
yet.
Issue:#5350
PiperOrigin-RevId: 229756637
ConcatenatingMediaSource using useLazyPreparation losts start offset for MP4 videos
Take com.google.android.exoplayer2.demo.PlayerActivity.java.
Change the line no. 447
mediaSource =mediaSources.length == 1 ? mediaSources[0] : new ConcatenatingMediaSource(mediaSources);
to
mediaSource = new ConcatenatingMediaSource(true, true,
new ShuffleOrder.DefaultShuffleOrder(0),
mediaSources);
startWindow = 0;
startPosition = 5 * 1000;
and run the example using Misc -> Dizzy (MP4). You'll see the 5 seconds start offset on the timeline, but right after the zero offset.
2.9.3
The text was updated successfully, but these errors were encountered: