Using Player.getCurrentWindowIndex and Timeline.getWindow. The current Timeline.Window can be retrieved from the Timeline Player.getCurrentTimeline returns the current media structure in a.Live offset and live offset adjustment parameters. MediaItem.liveConfiguration contains app-provided overrides for the target Player.getCurrentMediaItem returns the current media item, where.Player.getCurrentPosition returns the playback position relative to the.Player.getDuration returns the length of the current live window.Time and the playback position (if available). Player.getCurrentLiveOffset returns the offset between the current real.Note that this flag is also true for non-live streams in some This is usually true for live streams that are Player.isCurrentWindowDynamic indicates whether the currently playing media.This value is still true even if the live stream has Player.isCurrentWindowLive indicates whether the currently playing media.Methods, as listed below and shown in the following figure. You can retrieve details about theĬurrent live playback by querying various Player and Timeline.Window Detecting and monitoring live playbacksĮvery time a live window is updated, registered Player.Listener instances ![]() Unlike adaptive live streams, progressive live streams do not have a live windowĪnd can only be played at one position. The current real-time and the playback position is called the live offset. ![]() Position will always be somewhere in this window, in most cases close to theĬurrent real-time at which the stream is being produced. Regular intervals to move with the current real-time. See the Supported Formats page for more details.Īdaptive live streams offer a window of available media that is updated in Please refer to theĭocumentation for the latest ExoPlayer release on .ĮxoPlayer plays most adaptive live streams out-of-the-box without any specialĬonfiguration.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |