PillarboxCastPlayer
fun <Builder : PillarboxCastPlayerBuilder> PillarboxCastPlayer(context: Context, type: CastPlayerConfig<Builder>, builder: Builder.() -> Unit = {}): PillarboxCastPlayer
Create a new instance of PillarboxCastPlayer.
Usage
val player = PillarboxCastPlayer(context, Default) {
mediaItemConverter(MyMediaItemConverter())
}
Content copied to clipboard
Return
A new instance of PillarboxCastPlayer.
Parameters
Builder
The type of the PillarboxCastPlayerBuilder.
context
The Context.
type
The CastPlayerConfig.
builder
The builder.