AbstractPlayable
abstract class AbstractPlayable<RENDERER : Any>( master: Master, val media: Media, config: Playable.Config, bridge: Bridge<RENDERER>) : Playable, Playback.Callback, PlayerParametersChangeListener
Content copied to clipboard
Constructors
Link copied to clipboard
fun <RENDERER : Any> AbstractPlayable( master: Master, media: Media, config: Playable.Config, bridge: Bridge<RENDERER>)
Content copied to clipboard
Functions
Link copied to clipboard
Link copied to clipboard
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
Link copied to clipboard
Link copied to clipboard
open override fun onPlayerParametersChanged(parameters: PlayerParameters)
Content copied to clipboard
Link copied to clipboard
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
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: