MediasfuGenericOptions

data class MediasfuGenericOptions(val preJoinPageWidget: @Composable (MediasfuGenericState) -> Unit? = null, val localLink: String = "", val connectMediaSFU: Boolean = true, val credentials: Credentials? = null, val useLocalUIMode: Boolean? = null, val seedData: SeedData? = null, val useSeed: Boolean? = null, val imgSrc: String? = null, val sourceParameters: MediasfuParameters? = null, val updateSourceParameters: (MediasfuParameters) -> Unit? = null, val returnUI: Boolean = true, val noUIPreJoinOptionsCreate: Map<String, Any>? = null, val noUIPreJoinOptionsJoin: Map<String, Any>? = null, val defaultEventType: EventType = EventType.CONFERENCE, val joinRoomClient: suspend (JoinRoomClientOptions) -> ResponseJoinRoom = { com.mediasfu.sdk.producer_client.joinRoomClient(it) }, val joinMediaSFURoom: suspend (JoinMediaSFUOptions) -> CreateJoinRoomResult = { joinRoomOnMediaSfu(it) }, val createMediaSFURoom: suspend (CreateMediaSFUOptions) -> CreateJoinRoomResult = { createRoomOnMediaSfu(it) }, val customVideoCard: @Composable (Stream) -> Unit? = null, val customAudioCard: @Composable (Stream) -> Unit? = null, val customMiniCard: @Composable (Stream) -> Unit? = null, var customComponent: @Composable (MediasfuGenericState) -> Unit? = null, val containerStyle: ContainerStyleOptions = ContainerStyleOptions(), val uiOverrides: MediasfuUiOverrides = MediasfuUiOverrides(), val customWorkspaceBuilder: @Composable (MediasfuGenericState) -> Unit? = null, val useModernTheme: Boolean = true, val useModernUI: Boolean = true, val darkMode: Boolean? = null, var onToggleAudio: suspend () -> Unit? = null, var onToggleVideo: suspend () -> Unit? = null)

Constructors

Link copied to clipboard
constructor(preJoinPageWidget: @Composable (MediasfuGenericState) -> Unit? = null, localLink: String = "", connectMediaSFU: Boolean = true, credentials: Credentials? = null, useLocalUIMode: Boolean? = null, seedData: SeedData? = null, useSeed: Boolean? = null, imgSrc: String? = null, sourceParameters: MediasfuParameters? = null, updateSourceParameters: (MediasfuParameters) -> Unit? = null, returnUI: Boolean = true, noUIPreJoinOptionsCreate: Map<String, Any>? = null, noUIPreJoinOptionsJoin: Map<String, Any>? = null, defaultEventType: EventType = EventType.CONFERENCE, joinRoomClient: suspend (JoinRoomClientOptions) -> ResponseJoinRoom = { com.mediasfu.sdk.producer_client.joinRoomClient(it) }, joinMediaSFURoom: suspend (JoinMediaSFUOptions) -> CreateJoinRoomResult = { joinRoomOnMediaSfu(it) }, createMediaSFURoom: suspend (CreateMediaSFUOptions) -> CreateJoinRoomResult = { createRoomOnMediaSfu(it) }, customVideoCard: @Composable (Stream) -> Unit? = null, customAudioCard: @Composable (Stream) -> Unit? = null, customMiniCard: @Composable (Stream) -> Unit? = null, customComponent: @Composable (MediasfuGenericState) -> Unit? = null, containerStyle: ContainerStyleOptions = ContainerStyleOptions(), uiOverrides: MediasfuUiOverrides = MediasfuUiOverrides(), customWorkspaceBuilder: @Composable (MediasfuGenericState) -> Unit? = null, useModernTheme: Boolean = true, useModernUI: Boolean = true, darkMode: Boolean? = null, onToggleAudio: suspend () -> Unit? = null, onToggleVideo: suspend () -> Unit? = null)

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

REST API callback to create a room on MediaSFU Cloud (used by PreJoinPage)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val customMiniCard: @Composable (Stream) -> Unit? = null
Link copied to clipboard
Link copied to clipboard
val darkMode: Boolean? = null

Force dark mode (true), light mode (false), or use system default (null)

Link copied to clipboard

Default event type for PreJoinPage dropdown - used by specialized components like MediasfuBroadcast

Link copied to clipboard
val imgSrc: String? = null
Link copied to clipboard

REST API callback to join a room on MediaSFU Cloud (used by PreJoinPage)

Link copied to clipboard

Callback for socket-level room joining (internal use)

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
var onToggleAudio: suspend () -> Unit?

Mutable holder for the toggle audio callback - set by MediasfuGeneric when state is created

Link copied to clipboard
var onToggleVideo: suspend () -> Unit?

Mutable holder for the toggle video callback - set by MediasfuGeneric when state is created

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val returnUI: Boolean = true
Link copied to clipboard
val seedData: SeedData? = null
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
val useLocalUIMode: Boolean? = null
Link copied to clipboard

Apply modern theme styling (colors, typography) - default: true

Link copied to clipboard
val useModernUI: Boolean = true

Enable modern UI with unified modal system - set to false to use original modals with modern theme

Link copied to clipboard
val useSeed: Boolean? = null