-
Notifications
You must be signed in to change notification settings - Fork 3
WebrtCallOptions
Adnan Mujagić edited this page Jun 11, 2024
·
5 revisions
extends
CallOptions
init(audio: Bool = true, audioOptions: AudioOptions = AudioOptions(), recordingOptions: RecordingOptions = RecordingOptions(), video: Bool = false, videoOptions: VideoOptions = VideoOptions(), customData: CustomData = [:], dataChannel: Bool = false
video: Bool
videoOptions: VideoOptions
dataChannel: Bool
Creates an instance of WebrtcCallOptions
.
-
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. -
recordingOptions
:RecordingOptions
- Optional recording 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. -
customData
:CustomData
- Optional object containing custom additional information. Empty by default. This object will be forwarded to the remote endpoint in the incoming call event. -
dataChannel
:Bool
- Flag indicating whether the data channel should be created for the call. Disabled by default.
-
WebrtcCallOptions
- Instance of theWebrtcCallOptions
.
let customData = ["userId": "bgxy-as45-ddf3"]
let webrtcCallOptions = WebrtcCallOptions(video: true, videoOptions: VideoOptions(CameraOrientation.back), customData: customData)
Getter for the video
field.
none
-
Bool
- Value of thevideo
field indicating whether the call should include local video.
let video = WebrtcCallOptions().video
Getter for the videoOptions
field.
none
-
VideoOptions
- Value of thevideoOptions
field containing video configuration.
let videoOptions = WebrtcCallOptions().videoOptions
Getter for the dataChannel
field.
none
-
Bool
- Value of thedataChannel
field indicating whether the data channel should be created for a call.
let dataChannel = WebrtcCallOptions().dataChannel