set Media Item
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.
Parameters
video Options
The VideoOptions to play
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.
Parameters
media Source Factory
The ApiVideoExoPlayerMediaFactory to play