ExoPlayerAdapter
Concrete implementation of PlayerAdapter interface that is responsible for hiding integration details with com.google.android.exoplayer2.ExoPlayer instance.
Parameters
– A Looper that will be used for playback.
A valid URL to retrieve the content itself or its manifest.
one of MediaType types.
A valid URL to retrieve DRM License if the content is DRM protected.
one of DRMScheme types.
download identifier for the content.
Context instance.
The User-Agent string that should be used.
PlaybackProperties to apply for playback customization/optimization.
PlayerAdapter.Listener that listens for playback events.
The NetworkStack to be used.
The android.media.MediaMetadata object corresponding to the playback.
Represents the desired tolerances for seeking behaviour of the player.
The optional View to render the video into.
The optional Surface to render the video into.
Enables/disables repeated playback when stream reaches the end.
The ExoPlayerMediaPlaylistAdapter instance.
The Logger instance to be used for capturing logs.
A DecoderConfiguration to configure decoders of the the Player
Properties
Functions
When this command is received Player should auto-shutdown and trigger release of all underlying resources held by the Player irrespective of the state it is in Player should fire PlayerAdapter.EV_PLAYBACK_DISPOSED on successful abort. After dispose is processed, any call upon this Adapter will have no effect.
Retrieves the current audio volume.
Returns the CaptionSettingsSelector for this PlayerAdapter.
Retrieves the current playback rate.
Returns the PlaybackStats for the currently playback session, or null if no session is active.
Retrieves the current order of preference for various MIME types. Ex: aac, ec3, ac3, etc. Use MimeTypes for all possible values.
Returns the underlying native ExoPlayer player instance.
Retrieves the current ResizeMode.
When this command is received Player should trigger loading of Resources needed to Start the Playback .
When this command is received Player should trigger the pause of rendering Playback.
When this command is received Player should trigger the start of rendering Playback.
When this command is received Player should trigger the seek of Media Source to the passed position parameter in milliseconds.
When this command is received the Player should trigger the seek back of Media Source by PlaybackProperties.preferredSeekBackIncrementMs increment, in milliseconds
When this command is received the Player should trigger the seek forward of Media Source by PlaybackProperties.preferredSeekForwardIncrementMs increment, in milliseconds
When this command is received, Player should trigger the seek of Media Source to the edge of Live Window.
Set the Player audio volume to the given volume value.
Attach the corresponding android.media.MediaMetadata object to the MediaSession.
When this command is received Player should increase the playback rate by given factor.
Configures the Player's Variant Adaptation Logic with the passed maximum and minimum bitrate constraint.
Configures the Player's Variant Adaptation Logic with the passed maximum bitrate constraint.
When this command is received Player should set the ResizeMode to the given input.
Set the position of subtitles in the video. Note: This will NOT override the embedded subtitle styles.
When this command is received Player should trigger the stop of rendering Playback. Player should fire PlayerAdapter.EV_PLAYBACK_IDLE on successful stop.
Update streamStartUpTimeData property to data provided.