Learn how to add video conference calls to your app.
Argument | Required | Description |
---|---|---|
conferenceServer | yes | A conference server URL. |
createSession()
method. ConferenceClient
instance is a client model responsible for managing the conference session. ConferenceClient
has a setAutoSubscribeAfterJoin
option signifying that your client will be subscribed to all online publishers after joining some room. By default, setAutoSubscribeAfterJoin
is true
. ConferenceSession
is a session within a certain video room, managing all current processes.
ConferenceSession
instance state and conference events, you should implement appropriate interfaces. Implement the QBRTCSessionStateCallback
for tracking connection state:
ConferenceSessionCallbacks
for tracking conference events:
RTCClientVideoTracksCallbacks
and RTCClientAudioTracksCallback
.
QBConferenceSurfaceView
as renderer:
onStateChanged()
callback method to track session states.joinDialog()
. To unsubscribe from the publisher, use the unSubscribeFromPublisher()
method.
getLocalAudioTrack().setEnabled()
method. Using this method, we can tell SDK to send/not send audio data from a local peer in the specified WebRTC session.
QBRTCSession
methods (assuming that they are existent). You can also mute remote media tracks on your side by changing the value of the enabled property for a specific remote media track.
getLocalVideoTrack().setEnabled()
. Using this method, we can tell SDK not to send video data from a local peer in the specified session.
getVideoTrack(opponentID).setEnabled()
. Using this method, we can tell SDK not to send video data from a remote peer in the specified session.
leave()
method.