Learn how to add video conference calls to your app.
QBRTCConfig
class introduces new setting for Conference - conference endpoint. To set a specific conference endpoint use the following method:
nil
.
QBRTCConferenceClient
is a singleton-based class that is used to create and operate with conference sessions. It has an observer (delegates) manager which can be activated/deactivated with two simple methods:
QBRTCConferenceClientDelegate
protocol, which is inherited from the base client delegate. In order to create a new conference session, use the method below:
didCreateNewSession()
callback in QBRTCConferenceClientDelegate
protocol, where the session ID will be assigned and the session will receive its QBRTCSessionStateNew
state. After that, you can join or leave it. The conference session is explained below.
QBRTCConferenceSession
is inherited from the base session class and has all of its basics such as state
, currentUserID
, localMediaStream
as well as the ability to get remote audio and video tracks for specific user IDs.
QBRTCBaseSession
class for more inline documentation. As for conference-specific methods, the conference session ID is NSNumber
. Each conference session is tied to a specific QuickBlox dialog ID (NSString
).
QBRTCConferenceSession
also has a publishers list property. But the publishers list will be only valid if you call joinAsPublisher()
method allowing to join the session as a publisher using method below.
joinAsPublisher()
can be used only when the session has a valid session ID, for example, is created on the server and notified to you with didCreateNewSession()
callback from QBRTCConferenceClientDelegate
protocol.didCreateNewSession()
callback from QBRTCConferenceClientDelegate
protocol.localMediaStream.audioTrack.enabled()
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 enabled property for a specific remote media track.
localVideoTrack.setEnabled()
. Using this method, we can tell SDK not to send video data from a local peer in the specified session.
localVideoTrack.setEnabled()
. Using this method, we can tell SDK not to send video data from a remote peer in the specified session.
leave()
method.
QBRTCVideoFormat
.
Parameters | Description |
---|---|
width | Video width. Default: 640. |
height | Video hight. Default: 480. |
frameRate | Video frames per second. Default: 30. |
pixelFormat | Video pixel format. Default: QBRTCPixelFormat420f. |
formats(with:)
method and set a needed one from the list.