-
Notifications
You must be signed in to change notification settings - Fork 2
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 = falseaudio: BoolaudioOptions: AudioOptionsvideo: BoolvideoOptions: VideoOptionsrecordingOptions: RecordingOptionscustomData: CustomDatadataChannel: BoolautoReconnect: 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 theaudiofield indicating whether the call should include local audio.
let audio = RoomCallOptions().audioGetter for the audioOptions field.
none
-
AudioOptions- Value of theaudioOptionsfield containing audio configuration.
let audioOptions = RoomCallOptions().audioOptionsGetter for the video field.
none
-
Bool- Value of thevideofield indicating whether the call should include local video.
let video = RoomCallOptions().videoGetter for the videoOptions field.
none
-
VideoOptions- Value of thevideoOptionsfield containing video configuration.
let videoOptions = RoomCallOptions().videoOptionsGetter for the recordingOptions field.
none
-
RecordingOptions- Value of therecordingOptionsfield containing recording configuration.
let recordingOptions = RoomCallOptions().recordingOptionsGetter for the customData field.
none
-
CustomData- Value of thecustomDatafield containing custom additional information.
let customData = RoomCallOptions().customDataGetter for the dataChannel field.
none
-
Bool- Value of thedataChannelfield indicating whether the data channel should be created for a call.
let dataChannel = RoomCallOptions().dataChannelGetter for the autoReconnect field.
none
-
Bool- Value of theautoReconnectfield indicating whether the room call should automatically reconnect.
let autoReconnect = RoomCallOptions().autoReconnect