Learn how to mute audio, disable video, switch camera and audio output, etc.
enableAudio()
method with sessionId
, userId
, and enable
parameters. Using this method we can tell SDK to send/not send audio data either from a local or remote peer in the specified call session.
enableAudio()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
sessionId | yes | Call session identifier. |
userId | yes | ID of the user. This is an optional parameter. If userId is not passed to this method, a local audio stream is muted/unmuted. If userId is passed, a remote audio stream is muted/unmuted (by userid provided). |
enable | yes | Boolean parameter. true is enabled, false is disabled. |
enableVideo()
method with sessionId
, userId
, and enable
parameters. Using this method we can tell SDK not to send video data either from a local or remote peer in the specified call session. The video is disabled when the argument is set to false
and enabled when true
.
enableVideo()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
sessionId | yes | Call session identifier. |
userId | no | ID of the user. If userId is not passed to this method, a local video stream is turned on/off. If userId is passed, a remote video stream is rendered/not rendered (by userId provided). |
enable | yes | Boolean parameter. true is enabled, false is disabled. |
switchCamera()
with sessionId
parameter.
switchCamera()
method accepts one argument of the object type that has the following fields:
Field | Required | Description |
---|---|---|
sessionId | yes | Call session identifier. |
mirror
prop as true
.
Parameters | Description |
---|---|
mirror | Boolean parameter. true is enabled, false is disabled. |
sessionId | Call session identifier. |
style | View style. |
userId | ID of the user. |
QB.rtcconfig
class. All of them are listed below.
QB.webrtc.EVENT_TYPE.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.