PillarboxExoPlayer
fun <Builder : PillarboxBuilder> PillarboxExoPlayer(context: Context, type: PlayerConfig<Builder>, builder: Builder.() -> Unit = {}): PillarboxExoPlayer
Create a new instance of PillarboxExoPlayer.
Usage
val player = PillarboxExoPlayer(context, Default) {
addAssetLoader(MyAssetLoader())
coroutineContext(Dispatchers.Main)
}
Content copied to clipboard
Return
A new instance of PillarboxExoPlayer.