
When the start position of a MediaPeriodInfo is equal or higher than the duration, we set the start position to `duration - 1` to end on the last frame. With server side inserted ad streams, this has the effect that we actually need to seek back to the last content frame after a post-roll. This is desirable when actually ending on that frame but produces a BUFFERING event when transitioning from an SSAI stream with a post-roll to the next media item in the playlist. This change sets the start position to the duration when we are clipping the last content period of an SSAI stream that is played in a playlist. PiperOrigin-RevId: 433445680
ExoPlayer module
This module provides ExoPlayer
, the Player
implementation for local media
playback on Android.
Getting the module
The easiest way to get the module is to add it as a gradle dependency:
implementation 'com.google.android.exoplayer:exoplayer-core:2.X.X'
where 2.X.X
is the version, which must match the version of the other media
modules being used.
Alternatively, you can clone this GitHub project and depend on the module locally. Instructions for doing this can be found in the top level README.
Using the module
The developer guide documents how to get started.