PlayerScreen
fun PlayerScreen(playerViewModel: PlayerViewModel, volumeViewModel: VolumeViewModel, modifier: Modifier = Modifier, mediaDisplay: MediaDisplay = { playerUiState ->
DefaultMediaInfoDisplay(playerUiState)
}, controlButtons: ControlButtons = { playerUiController, playerUiState ->
DefaultPlayerScreenControlButtons(playerUiController, playerUiState)
}, buttons: SettingsButtons = {}, background: PlayerBackground = {}, focusRequester: FocusRequester = rememberActiveFocusRequester())
Stateful version of PlayerScreen that provides default implementation for media display and control buttons. This version listens to PlayerUiStates emitted from PlayerViewModel to update the screen.
fun PlayerScreen(mediaDisplay: @Composable ColumnScope.() -> Unit, controlButtons: @Composable RowScope.() -> Unit, buttons: @Composable RowScope.() -> Unit, modifier: Modifier = Modifier, background: @Composable BoxScope.() -> Unit = {})
Media Player screen that offers slots for media display, control buttons, buttons and background.