LivestreamPlayer
fun LivestreamPlayer(modifier: Modifier = Modifier, call: Call, enablePausing: Boolean = true, onPausedPlayer: (isPaused: Boolean) -> Unit? = {}, backstageContent: @Composable BoxScope.(Call) -> Unit = {
LivestreamBackStage()
}, rendererContent: @Composable BoxScope.(Call) -> Unit = {
LivestreamRenderer(
call = call,
enablePausing = enablePausing,
onPausedPlayer = onPausedPlayer,
)
}, overlayContent: @Composable BoxScope.(Call) -> Unit = {
LivestreamPlayerOverlay(call = call)
})
Represents livestreaming 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.
enablePausing
Enables pausing or resuming the livestream video.
onPausedPlayer
Listen to pause or resume the livestream video.
backstageContent
Content shown when the host has not yet started the live stream.
rendererContent
The rendered stream originating from the host.
overlayContent
Content displayed to indicate participant counts, live stream duration, and device settings controls.