set Mp4Data Source
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.
Parameters
video Options
The VideoOptions to play
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.
Parameters
video Url Factory
The ApiVideoMediaFactory to play