Listener

interface Listener

Interface definition to listen for player states.

Functions

Link copied to clipboard
abstract fun onConfigureSurface()
Invoked when the player is preparing a MediaSource and the surface should be set.
Link copied to clipboard
abstract fun onHideRenderView()
Invoked when the [RenderView] associated with the playback should be hidden.
Link copied to clipboard
Invoked when a new MediaItem is played.
Link copied to clipboard
abstract fun onPlayerInitialized()
Callback invoked when the player has been initialized.
Link copied to clipboard
abstract fun onPlayerReleased()
Invoked when the player is destroyed.
Link copied to clipboard
abstract fun onSetProjectionFormat()
Invoked when the player will be created.
Link copied to clipboard
abstract fun onShowRenderView()
Invoked when the @{link RenderView} associated with the playback should be visible.
Link copied to clipboard
abstract fun onVideoSizeChanged(width: Int, height: Int)
Called before a frame is rendered for the first time since setting the surface, and each time there's a change in the size or pixel aspect ratio of the video being rendered.