Learn how to mute audio and disable video.
enableAudio()
method with sessionId
, userId
, and enable
parameters. Using this method we can tell SDK to send/not send audio data from a remote or local peer in the specified call session.
Argument | Required | Desription |
---|---|---|
sessionId | yes | Call session identifier. |
mute | yes | Boolean parameter. true is muted, false is unmuted. |
userId | no | ID of the user. This is an optional parameter. If the userId is not passed to this method, a local audio stream is muted/unmuted. If the userId is passed, a remote audio stream is muted/unmuted (by userId provided). |
enableVideo()
method with sessionId
, userId
, and enable
parameters. Using this method we can tell SDK not to send video data from a remote or local peer in the specified call session.
Argument | Required | Description |
---|---|---|
sessionId | yes | Call session identifier. |
enable | yes | Boolean parameter. true is enabled, false is disabled. |
userId | no | ID of the user. If the userId is not passed to this method, a remote video stream is turned on/off. If userId is passed, a remote video stream is rendered/not rendered (by userId provided). |
setMirror()
method in the RTCVideoViewController
.
QB.rtcConfig
class. All of them are listed below.
QBRTCEventTypes.NOT_ANSWER
event type will be received. The answer time interval shows how much time an opponent has to answer your call. Set the answer time interval using the code snippet below.
switchAudioOutput()
method and pass the type of the audio device to it.
Argument | Required | Description |
---|---|---|
output | yes | Type of the audio device:QBRTCAudioOutputTypes.EARSPEAKER, QBRTCAudioOutputTypes.LOUDSPEAKER, QBRTCAudioOutputTypes.HEADPHONES, QBRTCAudioOutputTypes.BLUETOOTH. |