player

suspend fun player(device: AudioDevice.Output? = null): Player

Creates a new Player instance for audio playback.

Return

A new Player ready for playback

Parameters

device

Optional specific output device to use

Throws

if session creation fails


suspend fun player(config: PlayerConfig.() -> Unit): Player

Creates a new Player with custom configuration.

Return

A new Player ready for playback

Parameters

config

Configuration block for advanced options

Throws

if session creation fails