lib / tv.smartclip.smartclientandroid.lib.video_player / ExoHolder

ExoHolder

data class ExoHolder : IExoHolder

Implementation of IExoHolder. Binds the ExoPlayer to the PlayerView and disables the controller on initialization.

Constructors

<init>

Implementation of IExoHolder. Binds the ExoPlayer to the PlayerView and disables the controller on initialization.

ExoHolder(playerView: PlayerView, player: ExoPlayer)

Properties

player

ExoPlayer to use for video playback.

val player: ExoPlayer

playerView

PlayerView that should be used for the player.

val playerView: PlayerView

Functions

release

Removes all external class references. Has to be called when the implementing class is not needed anymore.

fun release(): Unit