StreamingLayout

Types

Link copied to clipboard
@Serializable
@SerialName(value = "active-participant")
object ActiveParticipant : StreamingLayout

Show a large view for the current speaker, and place up to 9 other participants to the right in a vertical grid (ordered by how recently they last spoke).

Link copied to clipboard
@Serializable
@SerialName(value = "audio-only")
object AudioOnly : StreamingLayout

Only records audio. Video will not be a part of the recording.

Link copied to clipboard
@Serializable
@SerialName(value = "custom")
data class Custom(val compositionId: String, val compositionParams: Map<String, CompositionParamValue>? = null, val sessionAssets: Map<String, String>? = null) : StreamingLayout

Allows for custom layouts. More details can be found in the Daily public docs.

Link copied to clipboard
@Serializable
@SerialName(value = "default")
data class Default(val maxCamStreams: Int? = null) : StreamingLayout

The default grid layout, which renders participants in a grid (or, in a vertical grid to the right, if a screen share is enabled).

Link copied to clipboard
@Serializable
@SerialName(value = "portrait")
data class Portrait(val variant: PortraitVariant? = null, val maxCamStreams: Int? = null) : StreamingLayout

A mobile-friendly layout -- the video will show up to two participants in a vertical layout.

Link copied to clipboard
@Serializable
@SerialName(value = "single-participant")
data class SingleParticipant(val participant: ParticipantId) : StreamingLayout

Only show a single participant in the stream.