createResponseJoinRoom

Creates a ResponseJoinRoom object from a ResponseJoinLocalRoom object.

This function takes a CreateResponseJoinRoomOptions containing the ResponseJoinLocalRoom object and returns a ResponseJoinRoom.

Example:

val localRoom = ResponseJoinLocalRoom(
rtpCapabilities = null,
isHost = true,
eventStarted = false,
isBanned = false,
hostNotJoined = false,
eventRoomParams = MeetingRoomParams(...),
recordingParams = RecordingParams(...),
secureCode = "12345",
mediasfuURL = "https://example.com",
apiKey = "api-key",
apiUserName = "user-name",
allowRecord = true
)

val joinRoom = createResponseJoinRoom(
CreateResponseJoinRoomOptions(localRoom = localRoom)
)
Logger.d("CreateResponseJoinRo", joinRoom)

Platform Notes:

  • Android: Uses Android-specific networking

  • iOS: Uses iOS-specific networking

  • Common: Core logic is platform-agnostic

Return

ResponseJoinRoom object created from the local room data

Parameters

options

Configuration options containing the local room response