Learn how to mute audio, disable video, switch camera, share your screen, configure media settings, etc.
mute()
method. Using this method, we can tell SDK to send/not send audio data either from a local or remote peer. Unmute the audio by calling the unmute()
method.
mute()
method. Using this method, we can tell SDK to send/not send video data either from a local or remote peer. Enable the video by calling the unmute()
method.
getMediaDevices()
method.
deviceId
and switch the video stream to the exact device.
call()
method is called, and the onCallListener()
callback is received by the remote user. Learn more details from the Initate call section.
As soon as you have a running call session use methods below:
runScreenSharing()
to enable the screen sharing. As a result, the camera video track in the local stream will be switched to the screen-sharing video track.stopScreenSharing()
to interrupt the screen sharing. As a result, the screen-sharing video track will be switched to the camera video track in the local stream.getUserMedia()
method. Set the mirror
as to true
to enable mirroring.
CONFIG
configuration.
onCallStatsReport
callback to listen to the stats report.
CONFIG
object. Review our Setup guide to learn more about CONFIG
configuration.
webrtc
fields.
Parameters | Description |
---|---|
answerTimeInterval | Maximum answer timefor the QB.webrtc.onUserNotAnswerListener callback to be fired. The answer time interval shows how much time an opponent has to answer your call. |
autoReject | If there is at least one active (recurring) call session and the autoReject is true, the call gets rejected. |
incomingLimit | If the number of active (recurring) call sessionsis more than it is defined by incomingLimit, the call gets rejected. |
dialingTimeInterval | The interval between call requests produced by the session.call() method. Dialing time interval indicates how often to notify your opponents about your call. |
disconnectTimeInterval | If an opponent has lost the connection then, after this time, the caller will know about it via the QB.webrtc.onSessionConnectionStateChangedListener callback. |
statsReportTimeInterval | Allows access to the statistical information about peer connection state (connected, failed, disconnected, etc). Set the number of seconds for the statistical information to be received. |
createNewSession()
method. Default: 0.
0
, the quality of the video is degraded.getUserMedia
constraints. See getUserMedia for more examples.