Note: There is a pending feature request (#2213) for ExoPlayer's default UIĬomponents to support additional modes when playing live streams. If you need differentīehavior, for example showing the Unix time or the current live offset, you canįork PlayerControlView and modify it to suit your needs. Jump backwards each time the live window is updated. Live playback UIĮxoPlayer's default UI components show the duration of the live window and To the default position by calling ekToDefaultPosition. This position is usually somewhere close to the live edge. The live window also has a default position at which playback is supposed to Keep the same live offset as the seeked-to position after a seek. SeekTo(0) will seek to the start of the live window. Position passed is relative to the start of the live window. You can seek to anywhere within the live window using ekTo. The player will start playback by default. Window.getDefaultPositionMs is the position in the live window at which.This value may be corrected by a known clock difference Window.getCurrentUnixTimeMs is the time since the Unix Epoch of theĬurrent real-time.Window.windowStartTimeMs is the time since the Unix Epoch at which the.These values are based on information in the mediaĪnd any app-provided overrides set in MediaItem.liveConfiguration. Window.liveConfiguration contains the target live offset and live offsetĪdjustment parameters.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).
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |