Learn how to mute audio, disable video, switch camera, share your screen, configure media settings, etc.
QBRTCSession
provides QBMediaStreamManager
class.
QBMediaStreamManager
holds a user’s local audio & video tracks and provides a way to change the video capturer.
QBMediaStreamManager
is attached to QBRTCSession
lifecycle. According to QBRTCSession
lifecycle, you should use QBMediaStreamManager
only when QBRTCSession
is active or has been started.setEnabled()
or setAudioEnabled()
method. Using these methods, we can tell SDK to send/not send audio data either from a local or remote peer in the specified call session.
setEnabled()
or setVideoEnabled()
method. Using these methods, we can tell SDK not to send video data either from a local or remote peer in the specified call session.
QBRTCCameraVideoCapturer
as Video Capturer.
QBRTCCameraVideoCapturer
throws the QBRTCCameraCapturerException
so you should handle this exception.CameraSwitchHandler
to handle the camera switching process.
videoCapturer
.
CallActivity.this
, you can use the context of the activity where you are asking this permission.startScreenSharing()
method to use it for setVideoCapturer()
.QBRTCScreenCapturer
as Video Capturer.QBRTCStatsReportCallback
and add them.
qbrtcStatsReport.audioReceivedCodec()
and qbrtcStatsReport.videoReceivedFps()
are not all you can get from the QBRTCStatsReport
. This is just the example.QBRTCStatsReport
, you can define when your opponent is speaking by using the qbrtcStatsReport.getAudioReceiveOutputLevel()
parameter. This parameter is the microphone level from the participant’s audio track at the moment of collecting the statistics report.QBRTCConfig
class. All of them are listed below.
onUserNotAnswer()
callback will be returned. 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.
QBRTCMediaConfig
class instance to configure a variety of media settings such as video/audio codecs, bitrate, fps, etc.