reUpdateInter

suspend fun reUpdateInter(options: ReUpdateInterOptions)

Updates the layout or content of the media streams based on user activity, screen share, or conference settings.

This function reorganizes or adds video streams to the screen layout. It dynamically adjusts stream visibility and layout based on screen sharing, conference activity, and audio loudness changes. If a user is actively sharing or speaking loudly, the function may promote their stream to a prominent position based on defined intervals.

Parameters

options

The options for updating the stream layout

Example:

val parameters = object : ReUpdateInterParameters {
override val screenPageLimit = 6
override val itemPageLimit = 3
override val reorderInterval = 10000
override val fastReorderInterval = 5000
override val eventType = "conference"
override val participants = listOf(/* participants */)
override val allVideoStreams = listOf(/* streams */)
override val shared = false
override val shareScreenStarted = false
// ... other implementations
override fun getUpdatedAllParams() = this
}

val options = ReUpdateInterOptions(
name = "participant1",
add = true,
force = false,
average = 150.0,
parameters = parameters
)

reUpdateInter(options)