Stream

@Serializable
data class Stream(val id: String? = null, val producerId: String, val muted: Boolean? = null, val stream: MediaStream? = null, val socket_: Any? = null, val name: String? = null, val audioID: String? = null, val videoID: String? = null, val extra: JsonObject = JsonObject(emptyMap()))

Constructors

Link copied to clipboard
constructor(id: String? = null, producerId: String, muted: Boolean? = null, stream: MediaStream? = null, socket_: Any? = null, name: String? = null, audioID: String? = null, videoID: String? = null, extra: JsonObject = JsonObject(emptyMap()))

Properties

Link copied to clipboard
val audioID: String? = null
Link copied to clipboard
val extra: JsonObject
Link copied to clipboard
val id: String? = null
Link copied to clipboard
val muted: Boolean? = null
Link copied to clipboard
val name: String? = null
Link copied to clipboard
Link copied to clipboard
val socket_: Any? = null
Link copied to clipboard
val stream: MediaStream? = null
Link copied to clipboard
val videoID: String? = null

Functions

Link copied to clipboard
fun Stream.toDisplayComponent(participants: List<Participant>, audioDecibels: List<AudioDecibels> = emptyList(), isVideoCard: Boolean = true, showControls: Boolean = false, currentMemberName: String? = null, currentMemberLevel: String? = null, eventType: EventType = EventType.NONE): MediaSfuUIComponent

Converts a Stream to the appropriate video/audio card component

Link copied to clipboard
fun Stream.toMiniAudioComponent(participants: List<Participant>, audioDecibels: List<AudioDecibels> = emptyList()): MiniAudio

Converts a Stream to MiniAudio component for mini view strip