setMp4MediaSource

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.

Parameters

videoOptions

The VideoOptions to play


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.

Parameters

mediaSourceFactory