AbstractPlayable

abstract class AbstractPlayable<RENDERER : Any>(    master: Master,     val media: Media,     config: Playable.Config,     bridge: Bridge<RENDERER>) : Playable, Playback.Callback, PlayerParametersChangeListener

Constructors

Link copied to clipboard
fun <RENDERER : Any> AbstractPlayable(    master: Master,     media: Media,     config: Playable.Config,     bridge: Bridge<RENDERER>)

Functions

Link copied to clipboard
open override fun isPlaying(): Boolean
Link copied to clipboard
open override fun onActive(playback: Playback)
Link copied to clipboard
open override fun onAdded(playback: Playback)
Link copied to clipboard
open fun onAttached(playback: Playback)
Link copied to clipboard
open override fun onConfigChange(): Boolean

Return true to indicate that this Playable would survive configuration changes and no playback reloading would be required. In special cases like YouTube playback, it is recommended to return false so Kohii will handle the resource recycling correctly.

Link copied to clipboard
open override fun onDetached(playback: Playback)
Link copied to clipboard
open override fun onInActive(playback: Playback)
Link copied to clipboard
open override fun onPause()
Link copied to clipboard
open override fun onPlay()
Link copied to clipboard
open override fun onPlayerParametersChanged(parameters: PlayerParameters)
Link copied to clipboard
open override fun onPrepare(loadSource: Boolean)
Link copied to clipboard
open override fun onReady()
Link copied to clipboard
open override fun onRelease()
Link copied to clipboard
open override fun onRemoved(playback: Playback)
Link copied to clipboard
open override fun onReset()
Link copied to clipboard
open override fun onUnbind(playback: Playback)
Link copied to clipboard
open override fun setupRenderer(playback: Playback)

Once the Playback finds it is good time for the Playable to request/release the Renderer, it will trigger these calls to send that signal. The 'good time' can varies due to the actual use case. In Kohii, there are 2 following cases:

Link copied to clipboard
open override fun teardownRenderer(playback: Playback)

Once the Playback finds it is good time for the Playable to request/release the Renderer, it will trigger these calls to send that signal. The 'good time' can varies due to the actual use case. In Kohii, there are 2 following cases:

Link copied to clipboard
open override fun toString(): String

Properties

Link copied to clipboard
val media: Media
Link copied to clipboard
abstract val renderer: Any?
Link copied to clipboard
open override val tag: Any