![]() |
Intel® Collaboration Suite for WebRTC
version 4.3.1
Open WebRTC Toolkit (OWT) Client SDK for iOS*
|
An asynchronous class for app to communicate with a conference in MCU. More...
#import <OWTConferenceClient.h>
Instance Methods | |
(instancetype) | - initWithConfiguration: |
Initialize a OWTConferenceClient with configuration. More... | |
(void) | - joinWithToken:onSuccess:onFailure: |
Connect to the specified room to join a conference. More... | |
(void) | - publish:withOptions:onSuccess:onFailure: |
Publish the stream to the current room. More... | |
(void) | - subscribe:withOptions:onSuccess:onFailure: |
Subscribe a stream from the current room. More... | |
(void) | - send:onSuccess:onFailure: |
Send message to all participants in the conference. More... | |
(void) | - send:to:onSuccess:onFailure: |
Send message to specific participant in the conference. More... | |
(void) | - leaveWithOnSuccess:onFailure: |
Leave current conference. | |
Properties | |
id< OWTConferenceClientDelegate > | delegate |
An asynchronous class for app to communicate with a conference in MCU.
- (instancetype) initWithConfiguration: | (OWTConferenceClientConfiguration *) | config |
Initialize a OWTConferenceClient with configuration.
config | Configuration for creating the OWTConferenceClient. |
- (void) joinWithToken: | (NSString *) | token | |
onSuccess: | (nullable void(^)(OWTConferenceInfo *)) | onSuccess | |
onFailure: | (nullable void(^)(NSError *)) | onFailure | |
Connect to the specified room to join a conference.
token | Includes the room info which is encrypted. |
onSuccess | Success callback with the conference info. |
- (void) publish: | (OWTLocalStream *) | stream | |
withOptions: | (nullable OWTPublishOptions *) | options | |
onSuccess: | (nullable void(^)(OWTConferencePublication *)) | onSuccess | |
onFailure: | (nullable void(^)(NSError *)) | onFailure | |
Publish the stream to the current room.
stream | The stream to be published. |
- (void) send: | (NSString *) | message | |
onSuccess: | (nullable void(^)()) | onSuccess | |
onFailure: | (nullable void(^)(NSError *)) | onFailure | |
Send message to all participants in the conference.
message | The message to be sent. |
- (void) send: | (NSString *) | message | |
to: | (NSString *) | receiver | |
onSuccess: | (nullable void(^)()) | onSuccess | |
onFailure: | (nullable void(^)(NSError *)) | onFailure | |
Send message to specific participant in the conference.
message | The message to be sent. |
to | The user who receives this message. |
- (void) subscribe: | (OWTRemoteStream *) | stream | |
withOptions: | (nullable OWTConferenceSubscribeOptions *) | options | |
onSuccess: | (nullable void(^)(OWTConferenceSubscription *)) | onSuccess | |
onFailure: | (nullable void(^)(NSError *)) | onFailure | |
Subscribe a stream from the current room.
stream | The remote stream to be subscribed. |
options | Options for subscribing the stream. |
onSuccess | Success callback with a stream that contains media stream. |