AudioRoomContent

fun AudioRoomContent(modifier: Modifier = Modifier, call: Call, isShowingAppBar: Boolean = true, permissions: VideoPermissionsState = rememberMicrophonePermissionState(call = call), title: String = stringResource( id = io.getstream.video.android.ui.common.R.string.stream_video_audio_room_title, ), appBarContent: @Composable (call: Call) -> Unit = { AudioAppBar( modifier = Modifier.fillMaxWidth(), title = title, ) }, style: AudioRendererStyle = RegularAudioRendererStyle(), audioRenderer: @Composable (participant: ParticipantState, style: AudioRendererStyle) -> Unit = { audioParticipant, audioStyle -> ParticipantAudio( participant = audioParticipant, style = audioStyle, ) }, audioContent: @Composable BoxScope.(call: Call) -> Unit = { val participants by call.state.participants.collectAsStateWithLifecycle() AudioParticipantsGrid( modifier = Modifier .testTag("audio_content") .fillMaxSize(), participants = participants, style = style, audioRenderer = audioRenderer, ) }, onLeaveRoom: () -> Unit? = null, onBackPressed: () -> Unit = {}, enableInPictureInPicture: Boolean = true, pictureInPictureContent: @Composable (call: Call, orientation: Int) -> Unit = { call, _ -> DefaultPictureInPictureContent(call, audioContent) }, controlsContent: @Composable (call: Call) -> Unit = { AudioControlActions( modifier = Modifier .testTag("audio_controls_content") .fillMaxWidth(), call = call, onLeaveRoom = onLeaveRoom, ) })

Represents audio room content based on the call state provided from the call.

Parameters

call

The call that contains all the participants state and tracks.

modifier

Modifier for styling.

permissions

Android permissions that should be required to render a audio call properly.

title

A title that will be shown on the app bar.

appBarContent

Content shown that a call information or an additional actions.

controlsContent

Content is shown that allows users to trigger different actions to control a joined call.

audioRenderer

A single audio renderer renders each individual participant.

onLeaveRoom

A lambda that will be invoked when the leave quietly button was clicked.

enableInPictureInPicture

If the user has engaged in Picture-In-Picture mode.

pictureInPictureContent

Content shown when the user enters Picture in Picture mode, if it's been enabled in the app.

audioContent

Content is shown by rendering audio when we're connected to a call successfully.