Package-level declarations
Functions
Link copied to clipboard
fun buildDefaultLobbyControlActions(call: Call, onCallAction: (CallAction) -> Unit, isCameraEnabled: Boolean = if (LocalInspectionMode.current) {
true
} else {
call.camera.isEnabled.value
}, isMicrophoneEnabled: Boolean = if (LocalInspectionMode.current) {
true
} else {
call.microphone.isEnabled.value
}): List<@Composable () -> Unit>
Builds the default set of Lobby Control actions based on the call device states.
Link copied to clipboard
fun CallLobby(modifier: Modifier = Modifier, call: Call, user: User = StreamVideo.instance().user, labelPosition: Alignment = Alignment.BottomStart, isCameraEnabled: Boolean = if (LocalInspectionMode.current) {
true
} else {
call.camera.isEnabled.value
}, isMicrophoneEnabled: Boolean = if (LocalInspectionMode.current) {
true
} else {
call.microphone.isEnabled.value
}, video: ParticipantState.Video = ParticipantState.Video(
sessionId = call.sessionId,
track = VideoTrack(
streamId = call.sessionId,
video = if (LocalInspectionMode.current) {
org.webrtc.VideoTrack(1000L)
} else {
call.camera.mediaManager.videoTrack
},
),
enabled = isCameraEnabled,
), permissions: VideoPermissionsState = rememberCallPermissionsState(call = call), onRendered: (View) -> Unit = {}, onRenderedContent: @Composable (video: ParticipantState.Video) -> Unit = {
OnRenderedContent(call = call, video = it, onRendered = onRendered)
}, onDisabledContent: @Composable () -> Unit = {
OnDisabledContent(user = user)
}, onCallAction: (CallAction) -> Unit = { DefaultOnCallActionHandler.onCallAction(call, it) }, lobbyControlsContent: @Composable (modifier: Modifier, call: Call) -> Unit = { modifier, call ->
ControlActions(
modifier = modifier,
call = call,
actions = buildDefaultLobbyControlActions(
call = call,
onCallAction = onCallAction,
isCameraEnabled = isCameraEnabled,
isMicrophoneEnabled = isMicrophoneEnabled,
),
)
})
Represents the UI in a preview call that renders a local video track to pre-display a video before joining a call.