initializePlayer
abstract fun initializePlayer(context: Context, lastPlayed: Long?, playWhenReady: Boolean?, bvPlayerParameters: BVPlayerParameters)
New a ExoPlayer instance and load video. Please call releasePlayer() when player is never used.
Parameters
context
The current android.content.Context.
lastPlayed
The last video played time. If is null, player will play the first segment for non-live content and play the last one for live content.
bvPlayerParameters
The wrapper object used to initialize player.