MillicastSDK 2.2.0
Loading...
Searching...
No Matches
<MCClient> Protocol Reference

#include <client.h>

Detailed Description

/ Connects and opens a websocket connection with the Millicast platform. You must set valid credentials before using this method. / - Parameters: / - completionHandler: Handler invoked when the result is ready.

  • (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. / - Parameters: / - options: Connection options. / - completionHandler: Handler invoked when the result is ready.

  • (void)connectWithOptions:(nonnull MCConnectionOptions *) options completionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;

/ Connects to the media server directly using the websocket URL and the JSON Web Token. / - Parameters: / - websocketUrl: The websocket URL returned by the Director API. / - jwt: The JSON Web Token returned by the Director API. / - completionHandler: Handler invoked when the result is ready.

  • (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. / - Parameters: / - connectionOptions: Connection options. Can be used for example to disable MCConnectionOptions/autoReconnect.

  • websocketUrl: The websocket URL returned by the Director API.
  • jwt: The JSON Web Token returned by the Director API.
  • completionHandler: Handler invoked when the result is ready.

The documentation for this protocol was generated from the following file: