Package-level declarations

Types

Link copied to clipboard
data class AddVideosGridOptions(val mainGridStreams: List<Stream>, val altGridStreams: List<Stream>, val numRows: Int, val numCols: Int, val actualRows: Int, val lastRowCols: Int, val removeAltGrid: Boolean, val parameters: AddVideosGridParameters)

Options for adding participants to the video grid.

Link copied to clipboard

Parameters required by addVideosGrid to keep UI state in sync with the engine.

Link copied to clipboard
data class AudioCardRenderInput(val stream: Stream, val participant: Participant, val displayName: String, val eventType: EventType, val parameters: AddVideosGridParameters)

Context passed to custom audio card builders.

Link copied to clipboard
data class AudioDecibels(val name: String, var averageLoudness: Double)

Represents audio decibel information for a participant.

Link copied to clipboard
class AutoAdjustException(message: String, cause: Throwable? = null) : Exception

Exception thrown when auto adjust fails.

Link copied to clipboard
data class AutoAdjustOptions(val n: Int, val eventType: Any?, val shareScreenStarted: Boolean, val shared: Boolean)

Options for adjusting layout ratios based on active participants and event context.

Link copied to clipboard

Exception thrown when calculating rows and columns fails.

Link copied to clipboard

Options for calculating the number of rows and columns in a grid layout.

Link copied to clipboard
data class ChangeVidsOptions(val screenChanged: Boolean = false, val parameters: ChangeVidsParameters)

Options for changing video streams.

Link copied to clipboard
Link copied to clipboard
data class CheckGridOptions(val rows: Int, val cols: Int, val actives: Int)

Options for checking the grid configuration.

Link copied to clipboard
data class CheckGridResult(val removeAltGrid: Boolean, val numToAdd: Int, val numRows: Int, val numCols: Int, val remainingVideos: Int, val actualRows: Int, val lastRowCols: Int)

Result of grid configuration check.

Link copied to clipboard
class CheckPermissionException(message: String, cause: Throwable? = null) : Exception

Exception thrown when checking permission fails.

Link copied to clipboard
data class CheckPermissionOptions(val audioSetting: String, val videoSetting: String, val screenshareSetting: String, val chatSetting: String, val permissionType: String)

Options for checking permission based on specific settings.

Link copied to clipboard
Link copied to clipboard

Options for the checkScreenShare function.

Link copied to clipboard
fun interface CheckScreenShareType
Link copied to clipboard
data class CloseAndResizeOptions(val producerId: String, val kind: String, val parameters: CloseAndResizeParameters)

Options for the closeAndResize function.

Link copied to clipboard
Link copied to clipboard
data class CompareActiveNamesOptions(val restart: Boolean = false, val parameters: CompareActiveNamesParameters)

Options for the compareActiveNames function.

Link copied to clipboard

Parameters required for comparing active names.

Link copied to clipboard
data class CompareScreenStatesOptions(val restart: Boolean = false, val parameters: CompareScreenStatesParameters)

Options for comparing screen states.

Link copied to clipboard

Parameters for comparing screen states.

Link copied to clipboard
data class ComponentSizes(val mainWidth: Double, val mainHeight: Double, val otherWidth: Double, val otherHeight: Double)

Component size configuration.

Link copied to clipboard
class ConnectIpsException(message: String, cause: Throwable? = null) : Exception

Exception thrown when connecting to IPs fails.

Link copied to clipboard
data class ConnectIpsOptions(val consumeSockets: List<Map<String, SocketManager>>, val remIP: List<String>, val apiUserName: String, val apiKey: String? = null, val apiToken: String, val newProducerMethod: suspend (NewPipeProducerOptions) -> Unit? = null, val closedProducerMethod: suspend (ProducerClosedOptions) -> Unit? = null, val joinConsumeRoomMethod: suspend (JoinConsumeRoomOptions) -> Result<Map<String, Any?>>? = null, val parameters: ConnectIpsParameters)

Options for connecting IPs and managing socket connections.

Link copied to clipboard

Parameters interface for connecting IPs and managing socket connections.

Link copied to clipboard
data class ConnectIpsResult(val consumeSockets: List<Map<String, SocketManager>>, val roomRecvIPs: List<String>)

Result of connecting to remote IPs.

Link copied to clipboard
class ConnectLocalIpsException(message: String, cause: Throwable? = null) : Exception

Exception thrown when connecting to local IPs fails.

Link copied to clipboard
data class ConnectLocalIpsOptions(val socket: SocketManager?, val newProducerMethod: suspend (LocalNewProducerOptions) -> Unit? = null, val closedProducerMethod: suspend (LocalProducerClosedOptions) -> Unit? = null, val receiveAllPipedTransportsMethod: suspend (ReceiveAllPipedTransportsOptions) -> Unit? = null, val parameters: ConnectLocalIpsParameters)

Options for connecting local IPs and managing socket connections.

Link copied to clipboard

Parameters interface for connecting local IPs and managing socket connections.

Link copied to clipboard
data class ConnectRecvTransportOptions(val consumer: WebRtcConsumer?, val consumerTransport: WebRtcTransport?, val remoteProducerId: String, val serverConsumerTransportId: String, val nsock: SocketManager, val parameters: ConnectRecvTransportParameters)

Options for connecting the receiving transport.

Link copied to clipboard

Parameters for connecting the receiving transport.

Link copied to clipboard

Exception thrown when connecting audio send transport fails.

Link copied to clipboard
data class ConnectSendTransportAudioOptions(val stream: MediaStream?, val parameters: ConnectSendTransportAudioParameters, val audioConstraints: Map<String, Any>? = null, val targetOption: String = "all")

Options for connecting audio send transports.

Link copied to clipboard

Parameters interface for connecting audio send transports.

Link copied to clipboard
data class ConnectSendTransportOptions(val option: String, val parameters: ConnectSendTransportParameters, val audioConstraints: Map<String, Any>? = null, val videoConstraints: Map<String, Any>? = null, val targetOption: String = "all")

Options for connecting send transport.

Link copied to clipboard

Exception thrown when connecting screen send transport fails.

Link copied to clipboard
data class ConnectSendTransportScreenOptions(val stream: MediaStream?, val parameters: ConnectSendTransportScreenParameters, val targetOption: String = "all")

Options for connecting screen send transports.

Link copied to clipboard

Parameters interface for connecting screen send transports.

Link copied to clipboard

Exception thrown when connecting video send transport fails.

Link copied to clipboard
data class ConnectSendTransportVideoOptions(val videoParams: ProducerOptionsType? = null, val parameters: ConnectSendTransportVideoParameters, val videoConstraints: Map<String, Any>? = null, val targetOption: String = "all")

Options for connecting video send transports.

Link copied to clipboard

Parameters interface for connecting video send transports.

Link copied to clipboard
data class ConsumeResponse(val id: String, val producerId: String, val kind: String, val rtpParameters: Map<String, Any>, val serverConsumerId: String = "")

Response from consume socket event.

Link copied to clipboard
data class ConsumerResumeOptions(val stream: MediaStream?, val consumer: WebRtcConsumer?, val kind: String, val remoteProducerId: String, val parameters: ConsumerResumeParameters, val nsock: SocketManager)

Configuration options for the consumerResume function.

Link copied to clipboard

Parameters for handling the resumption of audio and video streams in a media session.

Link copied to clipboard
data class ConsumerTransportInfo(val consumerTransport: WebRtcTransport?, val serverConsumerTransportId: String, val producerId: String, val consumer: WebRtcConsumer?, val socket: SocketManager?)

Consumer transport info for managing receive transports.

Link copied to clipboard
typealias ControlMediaAdapter = suspend (participant: Participant, mediaType: String) -> Result<Unit>
Link copied to clipboard
data class ControlMediaOptions(val participantId: String, val participantName: String, val type: String, val socket: SocketManager?, val coHostResponsibility: List<CoHostResponsibility>, val participants: List<Participant>, val member: String, val islevel: String, val showAlert: ShowAlert? = null, val coHost: String, val roomName: String)

Options for controlling media in a room.

Link copied to clipboard
class CreateSendTransportException(message: String, cause: Throwable? = null) : Exception

Exception thrown when creating send transport fails.

Link copied to clipboard
data class CreateSendTransportOptions(val option: String, val parameters: CreateSendTransportParameters, val audioConstraints: Map<String, Any>? = null, val videoConstraints: Map<String, Any>? = null)

Options for creating WebRTC send transports.

Link copied to clipboard

Contract describing the mutable parameters required to create WebRTC send transports.

Link copied to clipboard

Exception thrown when audio send transport disconnection fails.

Link copied to clipboard

Options for disconnecting audio send transport.

Link copied to clipboard

Parameters interface for disconnecting audio send transport.

Link copied to clipboard

Exception thrown when screen send transport disconnection fails.

Link copied to clipboard

Options for disconnecting screen send transport.

Link copied to clipboard

Parameters interface for disconnecting screen send transport.

Link copied to clipboard

Exception thrown when video send transport disconnection fails.

Link copied to clipboard

Options for disconnecting video send transport.

Link copied to clipboard

Parameters interface for disconnecting video send transport.

Link copied to clipboard
data class DispStreamsOptions(val lStreams: List<Stream>, val ind: Int, val auto: Boolean = false, val chatSkip: Boolean = false, val forChatCard: Any? = null, val forChatID: Any? = null, val parameters: DispStreamsParameters, val breakRoom: Int = -1, val inBreakRoom: Boolean = false)

Options for displaying streams.

Link copied to clipboard
Link copied to clipboard
data class GeneratePageContentOptions(val page: Int, val parameters: GeneratePageContentParameters, val breakRoom: Int = -1, val inBreakRoom: Boolean = false)

Options for generating page content.

Link copied to clipboard

Parameters used for generating page content for a specific user interface page.

Link copied to clipboard
data class GetEstimateOptions(val n: Int, val parameters: GetEstimateParameters)

Options for the getEstimate function.

Link copied to clipboard

Parameters interface for calculating grid estimates

Link copied to clipboard
data class GetPipedProducersAltOptions(val community: Boolean = false, val nsock: SocketManager, val islevel: String, val parameters: GetPipedProducersAltParameters)

Options for retrieving piped producers (alternative version).

Link copied to clipboard

Parameters for getting piped producers (alternative version).

Link copied to clipboard
data class GetProducersPipedOptions(val nsock: SocketManager, val islevel: String, val parameters: GetProducersPipedParameters)

Options for retrieving piped producers.

Link copied to clipboard

Parameters for getting piped producers.

Link copied to clipboard
class GetVideosException(message: String, cause: Throwable? = null) : Exception

Exception thrown when getting videos fails.

Link copied to clipboard
data class GetVideosOptions(val participants: List<Participant>, val allVideoStreams: List<Stream>, val oldAllStreams: List<Stream>, val adminVidID: String? = null, val updateAllVideoStreams: (List<Stream>) -> Unit, val updateOldAllStreams: (List<Stream>) -> Unit)

Options for retrieving and processing video streams.

Link copied to clipboard
data class GridSizes(val gridWidth: Int, val gridHeight: Int, val altGridWidth: Int, val altGridHeight: Int)

Grid size configuration.

Link copied to clipboard
data class JoinConsumeRoomOptions(val remoteSock: SocketManager, val apiToken: String, val apiUserName: String, val parameters: ConnectIpsParameters)

Options for joining a consume room.

Link copied to clipboard
data class LocalNewProducerOptions(val producerId: String, val islevel: String, val nsock: SocketManager, val parameters: ConnectLocalIpsParameters)

Options for new producer event (local connections).

Link copied to clipboard
data class LocalProducerClosedOptions(val remoteProducerId: String, val parameters: ConnectLocalIpsParameters)

Options for producer closed event (local connections).

Link copied to clipboard
data class Message(val sender: String = "", val content: String = "", val timestamp: Long = 0, val group: Boolean = false, val message: String = "")

Data class representing a message.

Link copied to clipboard
data class MiniCardRenderInput(val stream: Stream?, val participant: Participant, val displayName: String, val showVideo: Boolean, val eventType: EventType, val parameters: AddVideosGridParameters)

Context passed to custom mini-card builders.

Link copied to clipboard
class MixStreamsException(message: String, cause: Throwable? = null) : Exception

Exception thrown when mixing streams fails.

Link copied to clipboard
data class MixStreamsOptions(val alVideoStreams: List<Stream>, val nonAlVideoStreams: List<Stream>, val refParticipants: List<Participant>)

Options for mixing video and audio streams with participants.

Link copied to clipboard
data class NewPipeProducerOptions(val producerId: String, val islevel: String, val nsock: SocketManager, val parameters: ConnectIpsParameters)

Options for handling new pipe producer events.

Link copied to clipboard
data class OnScreenChangesOptions(val changed: Boolean = false, val parameters: OnScreenChangesParameters)

Options for handling screen changes.

Link copied to clipboard

Parameters for handling screen changes.

Link copied to clipboard

Configuration options for the prepopulateUserMedia function.

Link copied to clipboard

Parameters for the prepopulateUserMedia function.

Link copied to clipboard
data class ProcessConsumerTransportsAudioOptions(val consumerTransports: List<ConsumerTransportInfo>, val lStreams: List<Stream>, val parameters: ProcessConsumerTransportsAudioParameters)

Options for processing consumer transports audio.

Link copied to clipboard

Parameters for processing consumer transports audio.

Link copied to clipboard

Exception thrown when an error occurs during processing of consumer transports.

Link copied to clipboard
data class ProcessConsumerTransportsOptions(val consumerTransports: List<ConsumerTransportInfo>, val lStreams_: List<Stream>, val parameters: ProcessConsumerTransportsParameters)

Options for processing consumer transports.

Link copied to clipboard

Parameters interface for processing consumer transports.

Link copied to clipboard
data class ProducerClosedOptions(val remoteProducerId: String, val parameters: ConnectIpsParameters)

Options for handling producer closed events.

Link copied to clipboard
data class ReadjustOptions(val n: Int, val state: Int, val parameters: ReadjustParameters)

Options for the readjust function.

Link copied to clipboard

Parameters for readjusting the layout.

Link copied to clipboard
data class ReceiveAllPipedTransportsOptions(val community: Boolean, val nsock: SocketManager, val parameters: ConnectLocalIpsParameters)

Options for receiving all piped transports.

Link copied to clipboard

Parameters for receiving all piped transports.

Link copied to clipboard
data class ReceiveRoomMessagesOptions(val socket: SocketManager?, val roomName: String, val updateMessages: (List<Message>) -> Unit)

Options for receiving room messages.

Link copied to clipboard
class ReorderStreamsException(message: String, cause: Throwable? = null) : Exception

Exception thrown when reordering streams fails.

Link copied to clipboard
data class ReorderStreamsOptions(val add: Boolean, val screenChanged: Boolean, val parameters: ReorderStreamsParameters, val streams: List<Stream> = emptyList())

Options for reordering streams.

Link copied to clipboard

Parameters interface for reordering streams.

Link copied to clipboard
data class RePortOptions(val restart: Boolean = false, val parameters: RePortParameters)

Options for the rePort function.

Link copied to clipboard

Parameters for re-porting screen states and active names.

Link copied to clipboard
typealias RePortType = suspend (RePortOptions) -> Unit
Link copied to clipboard
typealias RequestPermissionAudioType = suspend () -> Boolean?
Link copied to clipboard
typealias RequestPermissionCameraType = suspend () -> Boolean

Parameters for switching user video device (alternative implementation).

Link copied to clipboard
typealias RequestScreenCapturePermissionType = suspend () -> Map<String, Any?>?

Callback type for requesting screen capture permission. Returns a Map containing "resultCode" (Int) and "data" (platform Intent) on success, or null if permission was denied or not available.

Link copied to clipboard

Options for requesting screen sharing.

Link copied to clipboard

Parameters required for requesting screen sharing.

Link copied to clipboard
Link copied to clipboard
data class ResumePauseAudioStreamsOptions(val breakRoom: Int? = null, val inBreakRoom: Boolean? = null, val parameters: ResumePauseAudioStreamsParameters)

Options for resuming/pausing audio streams.

Link copied to clipboard

Parameters for resuming/pausing audio streams based on breakout rooms.

Link copied to clipboard
class ResumePauseStreamsException(message: String, cause: Throwable? = null) : Exception

Exception thrown when resume/pause streams fails.

Link copied to clipboard
data class ResumePauseStreamsOptions(val parameters: ResumePauseStreamsParameters, val socket: SocketManager? = null)

Options for resuming and pausing streams.

Link copied to clipboard

Parameters interface for resuming and pausing streams.

Link copied to clipboard

Options for resuming send transport audio.

Link copied to clipboard

Parameters for resuming send transport audio.

Link copied to clipboard

Options for resuming send transport video.

Link copied to clipboard

Parameters for resuming send transport video.

Link copied to clipboard
data class ReUpdateInterOptions(val name: String, val add: Boolean = false, val force: Boolean = false, val average: Double = 127.0, val parameters: ReUpdateInterParameters)

Options for re-updating interactions.

Link copied to clipboard

Parameters for re-updating interactions and stream layouts.

Link copied to clipboard
data class ScreenState(val mainScreenPerson: String? = null, val mainScreenProducerId: String? = null, val mainScreenFilled: Boolean = false, val adminOnMainScreen: Boolean = false, val mainScreenVidCon: Any? = null, val updateMainWindow: Boolean = false, val mainHeightWidth: Double = 0.0, val isWideScreen: Boolean = false, val localStreamVideo: Any? = null)

Represents the state of a screen/participant.

Link copied to clipboard

Shared state required by both create/connect transport flows.

Link copied to clipboard

Custom exception for signal new consumer transport operations.

Options for getting videos in SignalNewConsumerTransport.

Link copied to clipboard
data class SignalNewConsumerTransportOptions(val producerId: String, val islevel: String, val socket: SocketManager, val parameters: SignalNewConsumerTransportParameters)

Options for signaling a new consumer transport.

Link copied to clipboard

Parameters required for signaling a new consumer transport. Includes consumer resume functionality for post-consume flow.

Options for reordering streams in SignalNewConsumerTransport.

Link copied to clipboard
class StartShareScreenException(message: String, cause: Throwable? = null) : Exception

Exception thrown when starting screen sharing fails.

Link copied to clipboard
data class StartShareScreenOptions(val parameters: StartShareScreenParameters, val targetWidth: Int? = null, val targetHeight: Int? = null, val mediaProjectionData: Map<String, Any?>? = null)

Options for starting screen sharing.

Link copied to clipboard

Parameters interface for starting screen sharing.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
data class StreamSuccessAudioOptions(val stream: MediaStream, val parameters: StreamSuccessAudioParameters, val audioConstraints: Map<String, Any>? = null)

Options for stream success audio.

Link copied to clipboard
Link copied to clipboard
data class StreamSuccessAudioSwitchOptions(val stream: MediaStream, val parameters: StreamSuccessAudioSwitchParameters, val audioConstraints: Map<String, Any>? = null)

Options for stream success audio switch.

Link copied to clipboard

Parameters for stream success audio switch handling.

Link copied to clipboard
Link copied to clipboard
data class StreamSuccessScreenOptions(val stream: MediaStream?, val parameters: StreamSuccessScreenParameters)

Options for stream success screen handling.

Link copied to clipboard
data class StreamSuccessVideoOptions(val stream: MediaStream?, val parameters: StreamSuccessVideoParameters, val videoConstraints: Map<String, Any>? = null)

Options for stream success video.

Link copied to clipboard
Link copied to clipboard
data class SwitchUserAudioOptions(val parameters: SwitchUserAudioParameters, val audioPreference: String, val audioConstraints: Map<String, Any>? = null)

Options for switching user audio device.

Link copied to clipboard

Parameters for switching user audio device.

Link copied to clipboard
Link copied to clipboard
data class SwitchUserVideoAltOptions(val videoPreference: String, val checkoff: Boolean, val parameters: SwitchUserVideoAltParameters)

Options for switching user video device (alternative method).

Link copied to clipboard
Link copied to clipboard
data class SwitchUserVideoOptions(val videoPreference: String, val checkoff: Boolean = false, val parameters: SwitchUserVideoParameters)

Options for switching user video device.

Link copied to clipboard

Parameters for switching user video device.

Link copied to clipboard
Link copied to clipboard
class TriggerException(message: String, cause: Throwable? = null) : Exception

Exception thrown when trigger fails.

Link copied to clipboard
data class TriggerOptions(val refActiveNames: List<String>, val parameters: TriggerParameters)

Options for triggering screen updates.

Link copied to clipboard

Parameters interface for trigger functionality.

Link copied to clipboard
data class UpdateMiniCardsGridOptions(val rows: Int, val cols: Int, val defal: Boolean, val actualRows: Int)

Grid recalculation payload used when syncing with the Compose display layer.

Link copied to clipboard
data class UpdateParticipantAudioDecibelsOptions(val name: String, val averageLoudness: Double, val audioDecibels: MutableList<AudioDecibels>, val updateAudioDecibels: (List<AudioDecibels>) -> Unit)

Options for updating the audio decibels of a participant.

Link copied to clipboard

Type definition for updating participant audio decibels.

Link copied to clipboard
data class VideoCardRenderInput(val stream: Stream, val participant: Participant, val displayName: String, val eventType: EventType, val forceFullDisplay: Boolean, val showControls: Boolean, val showInfo: Boolean, val doMirror: Boolean, val parameters: AddVideosGridParameters)

Context passed to custom video card builders.

Functions

Link copied to clipboard
suspend fun addVideosGrid(options: AddVideosGridOptions)

Adds participants to the video grid layout with 100% parity to the React and Flutter SDKs.

Link copied to clipboard
suspend fun autoAdjust(options: AutoAdjustOptions): Result<List<Int>>

Mirrors the React autoAdjust heuristic with 100% parity. Returns two integers whose sum is 12 representing the split between the primary and secondary grids.

Link copied to clipboard
suspend fun changeVids(options: ChangeVidsOptions)

Changes the video streams on the screen based on the provided options and parameters.

Link copied to clipboard

Checks the grid configuration and calculates various parameters based on the number of rows, columns, and active elements.

Link copied to clipboard

Checks the permission based on the provided settings.

Link copied to clipboard

Checks and manages screen sharing status, initiating or stopping screen share actions based on conditions.

Link copied to clipboard

Manages the closing and resizing of streams within a media session, adapting the layout and updating participant and stream information as needed.

Link copied to clipboard

Compares the current activeNames list with the prevActiveNames list and triggers an action if there are any differences.

Link copied to clipboard

Compares the current screenStates list with the prevScreenStates list and triggers actions if there are differences.

Link copied to clipboard

Connects to multiple remote IPs to manage socket connections for media consumption.

Link copied to clipboard

Connects to a local socket and manages socket events for media consumption.

Link copied to clipboard

Connects the local send transport for audio by producing audio data.

Link copied to clipboard

Connects the local send transport for screen sharing by producing screen data.

Link copied to clipboard

Connects the local send transport for video by producing video data.

Link copied to clipboard

Establishes a connection for the receiving transport to consume media from a remote producer and resumes the consumer stream.

Link copied to clipboard

Connects send transport for audio, video, or screen based on the specified option.

Link copied to clipboard

Connects the send transport for audio by producing audio data and updating the local audio producer and transport.

Link copied to clipboard

Connects the send transport for screen sharing by producing screen data and updating the local screen producer and transport.

Link copied to clipboard

Connects the send transport for video by producing video data and updating the local video producer and transport.

Link copied to clipboard

Handles the resumption of a media stream (either audio or video) by managing the socket connections, updating the UI, and reordering streams as necessary.

Link copied to clipboard
suspend fun controlMedia(options: ControlMediaOptions)

Controls media for a participant in a room by sending a controlMedia event to the server.

Link copied to clipboard

Creates a WebRTC send transport for media transmission.

Link copied to clipboard

Default implementation for handling new producer events (local connections). This is a placeholder that should be replaced with actual implementation.

Link copied to clipboard

Default implementation for handling producer closed events (local connections). This is a placeholder that should be replaced with actual implementation.

Link copied to clipboard

Default implementation for receiving all piped transports. This is a placeholder that should be replaced with actual implementation.

Link copied to clipboard

Disconnects the local send transport for audio by pausing the local audio producer and notifying the server.

Link copied to clipboard

Disconnects the local send transport for screen sharing by closing the local screen producer and notifying the server.

Link copied to clipboard

Disconnects the local send transport for video by closing the local video producer and notifying the server.

Link copied to clipboard

Disconnects the send transport for audio by pausing the audio producer and notifying the server.

Link copied to clipboard

Disconnects the send transport for screen sharing by closing the screen producer and notifying the server.

Link copied to clipboard

Disconnects the send transport for video by closing the video producer and notifying the server.

Link copied to clipboard
suspend fun dispStreams(options: DispStreamsOptions)

Displays streams in the UI based on the provided options using parity logic.

Link copied to clipboard

Generates the content for a specific page based on the provided options.

Link copied to clipboard

Calculates the optimal grid layout dimensions based on the number of participants and various display parameters.

Link copied to clipboard

Retrieves piped producers and signals new consumer transport for each retrieved producer.

Link copied to clipboard

Retrieves piped producers and signals new consumer transport for each retrieved producer.

Link copied to clipboard
suspend fun getVideos(options: GetVideosOptions): Result<Unit>

Processes and updates video streams by filtering out the admin's video stream.

Link copied to clipboard
fun hasListener(socket: SocketManager, eventName: String): Boolean

Checks if a socket has a listener registered for the given event.

Link copied to clipboard
suspend fun mixStreams(options: MixStreamsOptions): Result<List<Any>>

Mixes video and audio streams and participants based on specified parameters.

Link copied to clipboard

Handles screen changes and adjusts the display settings based on event type and screen sharing status.

Link copied to clipboard

Populates the main media grid state based on the media activity of the participant.

Link copied to clipboard

Processes consumer transports to pause or resume video streams based on provided stream lists.

Link copied to clipboard

Adjusts the audio state of consumer transports based on provided streams.

Link copied to clipboard
suspend fun readjust(options: ReadjustOptions)

Adjusts the layout parameters based on the current state, participant count, and event type.

Link copied to clipboard
suspend fun receiveAllPipedTransportsImpl(nsock: SocketManager, community: Boolean = false, roomName: String, member: String, getPipedProducersAlt: suspend (GetPipedProducersAltOptions) -> Unit)

Receives all piped transports for a specific room and member by requesting piped producers at different levels.

Link copied to clipboard

Retrieves messages from a specified room using a socket connection.

Link copied to clipboard

Reorders video streams based on the provided parameters and options.

Link copied to clipboard
suspend fun rePort(options: RePortOptions)

Re-ports the screen states and active names for the main screen in a conference or event session.

Link copied to clipboard
suspend fun requestScreenShareImpl(socket: SocketManager?, showAlert: (message: String, type: String, duration: Int) -> Unit?, localUIMode: Boolean, targetResolution: String, targetResolutionHost: String, startShareScreen: suspend (Any, Int, Int) -> Unit, parameters: Any)

Internal implementation of requestScreenShare with parameters inline. This is a simplified version that will be replaced with full implementation.

Link copied to clipboard

Resumes the local send transport for audio by resuming the local audio producer.

Link copied to clipboard

Resumes the local send transport for video by resuming the local video producer if available.

Link copied to clipboard

Resumes or pauses audio streams for participants based on breakout room status and event type.

Link copied to clipboard

Resumes or pauses video streams based on active participants and display names.

Link copied to clipboard

Resumes the send transport for audio and updates the UI and audio producer state accordingly.

Link copied to clipboard

Resumes the video send transport and updates related UI state.

Link copied to clipboard
suspend fun reUpdateInter(options: ReUpdateInterOptions)

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

Link copied to clipboard

Signals a new consumer transport to start consuming media from a producer.

Link copied to clipboard

Starts the screen sharing process.

Link copied to clipboard

Stops the screen sharing process and updates various states and UI elements accordingly.

Link copied to clipboard

Manages the setup and successful transition of audio streaming.

Link copied to clipboard

Manages switching to a new audio stream, updating the audio producer, local streams, and UI state as necessary.

Link copied to clipboard
Link copied to clipboard

Manages the setup and successful transition of video streaming.

Link copied to clipboard

Switches the user's audio input to the specified device.

Link copied to clipboard

Toggles or switches the video stream based on user preferences and permission checks.

Link copied to clipboard

Switches video input devices by facing mode (front/back camera).

Link copied to clipboard
suspend fun trigger(options: TriggerOptions): Result<Unit>

Triggers screen updates and layout adjustments based on active participants. Emits "updateScreenClient" to notify the backend/server about the current layout.

Link copied to clipboard
fun updateMicLevel(audioProducer: WebRtcProducer?, updateAudioLevel: (Double) -> Unit)

Updates the microphone audio level periodically.

Link copied to clipboard
suspend fun updateMiniCardsGridImpl(rows: Int, cols: Int, defal: Boolean, actualRows: Int, gridSizes: GridSizes, paginationDirection: String, paginationHeightWidth: Double, doPaginate: Boolean, componentSizes: ComponentSizes, eventType: String, updateGridRows: (Int) -> Unit, updateGridCols: (Int) -> Unit, updateAltGridRows: (Int) -> Unit, updateAltGridCols: (Int) -> Unit, updateGridSizes: (GridSizes) -> Unit)

Internal implementation of updateMiniCardsGrid. This function calculates and updates the grid dimensions for mini cards display.

Link copied to clipboard

Updates the audio decibels for a participant.