-
public interface ExoMediaPlayback.Listener
Interface definition to listen for player states.
-
-
Method Summary
Modifier and Type Method Description abstract void
onSetProjectionFormat()
Invoked when the player will be created. abstract void
onPlayerInitialized()
Callback invoked when the player has been initialized. abstract void
onPlayerReleased()
Invoked when the player is destroyed. abstract void
onHideRenderView()
Invoked when the [RenderView] associated with the playback should be hidden. abstract void
onShowRenderView()
Invoked when the @{link RenderView} associated with the playback should be visible. abstract void
onVideoSizeChanged(int width, int height)
Called before a frame is rendered for the first time since setting the surface, and each timethere's a change in the size or pixel aspect ratio of the video being rendered. abstract void
onConfigureSurface()
Invoked when the player is preparing a MediaSource and the surface should be set. void
onMediaItemChanged()
Invoked when a new MediaItem is played. -
-
Method Detail
-
onSetProjectionFormat
abstract void onSetProjectionFormat()
Invoked when the player will be created.
-
onPlayerInitialized
abstract void onPlayerInitialized()
Callback invoked when the player has been initialized.
-
onPlayerReleased
abstract void onPlayerReleased()
Invoked when the player is destroyed.
-
onHideRenderView
abstract void onHideRenderView()
Invoked when the [RenderView] associated with the playback should be hidden.
-
onShowRenderView
abstract void onShowRenderView()
Invoked when the @{link RenderView} associated with the playback should be visible.
-
onVideoSizeChanged
abstract void onVideoSizeChanged(int width, int height)
Called before a frame is rendered for the first time since setting the surface, and each timethere's a change in the size or pixel aspect ratio of the video being rendered.
- Parameters:
width
- The video width in pixels, 0 when unknown.height
- The video height in pixels, 0 when unknown.
-
onConfigureSurface
abstract void onConfigureSurface()
Invoked when the player is preparing a MediaSource and the surface should be set.
-
onMediaItemChanged
void onMediaItemChanged()
Invoked when a new MediaItem is played.
-
-
-
-