Skip to main content

Mute audio

Mute the audio by calling the 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.
Dart

Disable video

Turn off the video by calling the 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.
Dart

Mirror local video

The mirror functionality allows flipping the video horizontally. To enable mirroring, use the setMirror() method in the RTCVideoViewController.
Dart

General settings

You can change different settings for your calls using QB.rtcConfig class. All of them are listed below.

Answer time interval

If an opponent hasn’t answered within an answer time interval, the 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.
Dart
By default, the answer time interval is 60 seconds. The minimum value is 10 seconds.

Dialing time interval

Dialing time interval indicates how often to notify your opponents about your call. Set the dialing time interval using the code snippet below.
Dart
By default, the dialing time interval is 5 seconds. The minimum value is 3 seconds.

Switch audio output device

You can switch an audio output. Call the switchAudioOutput() method and pass the type of the audio device to it.
You can switch the audio input only after receiving/creating a webrtc session.
Dart