MillicastSDK 2.0.0
|
The Client base that contains common methods between MCPublisher
and MCSubscriber
.
More...
#import <client.h>
Instance Methods | |
(void) | - connectWithCompletionHandler: |
(void) | - connectWithOptions:completionHandler: |
(void) | - connectWithWebsocketUrl:jwt:completionHandler: |
(void) | - connectWithWebsocketUrl:jwt:connectionOptions:completionHandler: |
(void) | - isConnectedWithCompletionHandler: |
(void) | - disconnectWithCompletionHandler: |
(void) | - enableStats:completionHandler: |
The Client base that contains common methods between MCPublisher
and MCSubscriber
.
- (void) connectWithCompletionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler |
Connects and opens a websocket connection with the Millicast platform. You must set valid credentials before using this method.
- (void) connectWithOptions: | (nonnull MCConnectionOptions *) | options | |
completionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler | |
Connects and opens a websocket connection with the Millicast platform. You must set valid credentials before using this method.
- (void) connectWithWebsocketUrl: | (nonnull NSString *) | websocketUrl | |
jwt: | (nonnull NSString *) | jwt | |
completionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler | |
Connects to the media server directly using the websocket URL and the JSON Web Token.
- (void) connectWithWebsocketUrl: | (nonnull NSString *) | websocketUrl | |
jwt: | (nonnull NSString *) | jwt | |
connectionOptions: | (nonnull MCConnectionOptions *) | connectionOptions | |
completionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler | |
Connects to the media server directly using the websocket URL and the JSON Web Token.
MCConnectionOptions/autoReconnect
.- (void) disconnectWithCompletionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler |
Disconnects from the Millicast platform.
Any ongoing process of publishing or subscribing content is automatically stopped before termination. The websocket connection to Millicast will no longer be active after disconnect is complete.
- (void) enableStats: | (BOOL) | enable | |
completionHandler: | (nonnull void(^)(void)) | completionHandler | |
Enables or disables the collection and reporting of real-time statistics associated with streaming sessions. The statistics are collected once the client is either publishing or subscribed.
- (void) isConnectedWithCompletionHandler: | (nonnull void(^)(BOOL connected)) | completionHandler |
Checks whether the client is connected to the media server.