AbstractBridge

abstract class AbstractBridge<RENDERER : Any> : Bridge<RENDERER>

Constructors

Link copied to clipboard
fun AbstractBridge()

Functions

Link copied to clipboard
override fun addErrorListener(errorListener: ErrorListener)
Link copied to clipboard
override fun addEventListener(listener: Player.Listener)

Add a new Player.Listener to this Playable. As calling prepare also triggers some internal events, this method should be called before prepare so that Client could received them all.

Link copied to clipboard
override fun addVolumeChangeListener(listener: VolumeChangedListener)
Link copied to clipboard
abstract fun isPlaying(): Boolean
Link copied to clipboard
open override fun pause()
Link copied to clipboard
open override fun play()
Link copied to clipboard
abstract fun prepare(loadSource: Boolean)

Prepare the resource for a media. This method should:

Link copied to clipboard
abstract fun ready()
Link copied to clipboard
abstract fun release()

Release all resource. After this, the Player instance is released to the Player pool and the Bridge must call prepare to request for a Player it again.

Link copied to clipboard
override fun removeErrorListener(errorListener: ErrorListener?)
Link copied to clipboard
override fun removeEventListener(listener: Player.Listener?)

Remove a Player.Listener from this Playable.

Link copied to clipboard
override fun removeVolumeChangeListener(listener: VolumeChangedListener?)
Link copied to clipboard
abstract fun reset(resetPlayer: Boolean = true)

Reset all resource, so that the playback can start all over again. This is to cleanup the playback for reuse. The ExoPlayer instance must be still usable without calling prepare.

Link copied to clipboard
abstract fun seekTo(positionMs: Long)

Properties

Link copied to clipboard
abstract var playbackInfo: PlaybackInfo
Link copied to clipboard
open override var playerParameters: PlayerParameters
Link copied to clipboard
abstract val playerState: Int
Link copied to clipboard
abstract var renderer: RENDERER?
Link copied to clipboard
abstract var repeatMode: Int
Link copied to clipboard
abstract var volumeInfo: VolumeInfo