maxPlaybackSpeed: The maximum playback speed the player can use to catch up.When trying to reach the target live offset. minPlaybackSpeed: The minimum playback speed the player can use to fall back.Offset to current network conditions, the player will not attempt to get above maxOffsetMs: The maximum allowed live offset.Offset to current network conditions, the player will not attempt to get below minOffsetMs: The minimum allowed live offset.The player will attempt to getĬlose to this live offset during playback if possible. targetOffsetMs: The target live offset.setMediaSourceFactory ( new DefaultMediaSourceFactory ( context ). Global default values set on DefaultMediaSourceFactory. Order of priority (the first value found is used): Configuring live playback parametersĮxoPlayer uses some parameters to control the offset of the playback positionįrom the live edge, and the range of playback speeds that can be used toĮxoPlayer gets values for these parameters from three places, in descending 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 StyledPlayerControlView 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). 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
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |