RendererProvider

interface RendererProvider : DefaultLifecycleObserver

A pool to cache the renderer for the Playback.

Functions

Link copied to clipboard
open fun acquireRenderer(playback: Playback, media: Media): Any?

Returns a renderer for the playback that can be used to render the content of media, or null if no renderer is available.

Link copied to clipboard
open fun clear()

Cleans up this pool.

Link copied to clipboard
open override fun onCreate(@NonNull p0: LifecycleOwner)
Link copied to clipboard
open override fun onDestroy(owner: LifecycleOwner)
Link copied to clipboard
open override fun onPause(@NonNull p0: LifecycleOwner)
Link copied to clipboard
open override fun onResume(@NonNull p0: LifecycleOwner)
Link copied to clipboard
open override fun onStart(@NonNull p0: LifecycleOwner)
Link copied to clipboard
open override fun onStop(@NonNull p0: LifecycleOwner)
Link copied to clipboard
open fun releaseRenderer(    playback: Playback,     media: Media,     renderer: Any?): Boolean

Releases the renderer back to the pool. Returns true if either the renderer is null (so nothing needed to be done), or the renderer is successfully released back to the pool.

Inheritors

Link copied to clipboard