PillarboxCastPlayer
fun PillarboxCastPlayer(context: Context, builder: SRG.Builder.() -> Unit = {}): PillarboxCastPlayer
Creates a PillarboxCastPlayer instance configured for the SRG SSR.
Basic usage
val srgCastPlayer = PillarboxCastPlayer(context)Content copied to clipboard
This creates a player with the default SRG SSR configuration:
SRG Cast MediaItemConverter: integrates an SRGMediaItemConverter for handling SRG-specific media item to Cast item conversion. If not explicitly configured, a default instance is created.
Return
A configured PillarboxCastPlayer instance ready for playback.
Parameters
context
The Context of the application.
builder
An optional lambda with a receiver of type SRG.Builder allowing customization of the player's configuration.