-
Notifications
You must be signed in to change notification settings - Fork 3
RoomCallOptions
Eldar Babić edited this page Feb 10, 2025
·
7 revisions
init(audio: Bool = true, audioOptions: AudioOptions = AudioOptions(), video: Bool = false, videoOptions: VideoOptions = VideoOptions(), recordingOptions: RecordingOptions = RecordingOptions(), customData: CustomData = [:], dataChannel: Bool = false, autoReconnect: Bool = false
audio: Bool
audioOptions: AudioOptions
video: Bool
videoOptions: VideoOptions
recordingOptions: RecordingOptions
customData: CustomData
dataChannel: Bool
autoReconnect: Bool
init(audio, audioOptions, video, videoOptions, recordingOptions, customData, dataChannel, autoReconnect)
Creates an instance of RoomCallOptions
.
-
audio
:Bool
- Flag indicating whether the local audio should be enabled for the call. Enabled by default. -
audioOptions
:AudioOptions
- Optional audio configuration to be used when making a call. -
video
:Bool
- Flag indicating whether the local video should be enabled for the call. Disabled by default. -
videoOptions
:VideoOptions
- Optional video configuration to be used when making a call. -
recordingOptions
:RecordingOptions
- Optional recording configuration to be used when making a call. -
customData
:CustomData
- Optional object containing custom additional information related to the outgoing call. Empty by default. -
dataChannel
:Bool
- Flag indicating whether the data channel should be created for the call. Disabled by default. -
autoReconnect
:Bool
- Optional flag indicating whether reconnect should be enabled for the room call. Disabled by default.
-
RoomCallOptions
- Instance of theRoomCallOptions
.
let customData = ["userId": "bgxy-as45-ddf3"]
let roomCallOptions = RoomCallOptions(video: true, videoOptions: VideoOptions(CameraOrientation.back), customData: customData)
Getter for the audio
field.
none
-
Bool
- Value of theaudio
field indicating whether the call should include local audio.
let audio = RoomCallOptions().audio
Getter for the audioOptions
field.
none
-
AudioOptions
- Value of theaudioOptions
field containing audio configuration.
let audioOptions = RoomCallOptions().audioOptions
Getter for the video
field.
none
-
Bool
- Value of thevideo
field indicating whether the call should include local video.
let video = RoomCallOptions().video
Getter for the videoOptions
field.
none
-
VideoOptions
- Value of thevideoOptions
field containing video configuration.
let videoOptions = RoomCallOptions().videoOptions
Getter for the recordingOptions
field.
none
-
RecordingOptions
- Value of therecordingOptions
field containing recording configuration.
let recordingOptions = RoomCallOptions().recordingOptions
Getter for the customData
field.
none
-
CustomData
- Value of thecustomData
field containing custom additional information.
let customData = RoomCallOptions().customData
Getter for the dataChannel
field.
none
-
Bool
- Value of thedataChannel
field indicating whether the data channel should be created for a call.
let dataChannel = RoomCallOptions().dataChannel
Getter for the autoReconnect
field.
none
-
Bool
- Value of theautoReconnect
field indicating whether the room call should automatically reconnect.
let autoReconnect = RoomCallOptions().autoReconnect