Package-level declarations

Properties

Link copied to clipboard

Get the current video options

Functions

Link copied to clipboard

Adds a MediaItem to Player to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun Player.addMediaItem(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Adds a MediaItem to Player to read from api.video HLS.

Link copied to clipboard

Adds a MediaSource to ExoPlayer to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun ExoPlayer.addMediaSource(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Adds a MediaSource to ExoPlayer to read from api.video HLS.

Link copied to clipboard

Adds a MediaItem to Player to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun Player.addMp4MediaItem(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Adds a MediaItem to Player to read from api.video MP4 URL.

Link copied to clipboard

Adds a MediaSource to ExoPlayer to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun ExoPlayer.addMp4MediaSource(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Adds a MediaSource to ExoPlayer to read from api.video MP4 URL.

Link copied to clipboard
fun String.appendTokenSession(tokenSession: String?): String
Link copied to clipboard
fun Player.getStateFrom(otherPlayer: Player)

Copy the state of another player to this player

Link copied to clipboard

Hides the system UI: status bar, navigation bar and system bars.

Link copied to clipboard

Converts an api.video URL String to a VideoOptions.

Link copied to clipboard
fun MediaPlayer.setDataSource(context: Context, videoUrlFactory: ApiVideoMediaFactory)

Sets a media source to MediaPlayer to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun MediaPlayer.setDataSource(context: Context, videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a media source to MediaPlayer to read from api.video HLS.

Link copied to clipboard

Sets a MediaItem to Player to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun Player.setMediaItem(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a MediaItem to Player to read from api.video HLS.

Link copied to clipboard

Sets a MediaSource to ExoPlayer to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun ExoPlayer.setMediaSource(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a MediaSource to ExoPlayer to read from api.video HLS.

Link copied to clipboard

Sets a media source to MediaPlayer to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun MediaPlayer.setMp4DataSource(context: Context, videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a media source to MediaPlayer to read from api.video MP4 URL.

Link copied to clipboard

Sets a MediaItem to Player to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun Player.setMp4MediaItem(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a MediaItem to Player to read from api.video MP4 URL.

Link copied to clipboard

Sets a MediaSource to ExoPlayer to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun ExoPlayer.setMp4MediaSource(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a MediaSource to ExoPlayer to read from api.video MP4 URL.

Link copied to clipboard

Sets a media source to VideoView to read from api.video MP4 URL. Use this method if you want to keep the session token for later usage.

fun VideoView.setMp4Video(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a media source to VideoView to read from api.video MP4 URL.

Link copied to clipboard

Sets a media source to VideoView to read from api.video HLS. Use this method if you want to keep the session token for later usage.

fun VideoView.setVideo(videoOptions: VideoOptions, onError: (Exception) -> Unit = { error -> Log.e( TAG, "Failed to create session $error" ) })

Sets a media source to VideoView to read from api.video HLS.

Link copied to clipboard

Converts String to a VideoType.