#import <client.h>
The MCDelegate
protocol contains common methods that will be called on specific events from a Client object. It is mainly subclassed by MCSubscriberDelegate
and MCPublisherDelegate
, which are the main ones to implement.
◆ client:didReceiveHTTPConnectionError:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveHTTPConnectionError: |
|
(client(_:didReceiveHTTPConnectionError:)) |
NS_SWIFT_NAME |
|
|
| |
Called when an attempt to connect to Millicast fails.
- Parameters:
- client: The Millicast client
- error: The HTTP error received
◆ client:didReceiveRTCPeerConnectionState:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveRTCPeerConnectionState: |
|
(client(_:didReceiveRTCPeerConnectionState:)) |
NS_SWIFT_NAME |
|
|
| |
|
optional |
Called when the RTC Peer Connection state has changed.
- Parameters:
- client: The Millicast client
- didReceiveRTCPeerConnectionState: The current RTC Peer Connection state
◆ client:didReceiveSignalingError:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveSignalingError: |
|
(client(_:didReceiveSignalingError:)) |
NS_SWIFT_NAME |
|
|
| |
Called when an error message from Millicast in the response of a websocket command is received.
- Parameters:
- client: The Millicast client
- didReceiveSignalingError: Signaling error received.
◆ client:didReceiveStatsReport:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveStatsReport: |
|
(client(_:didReceiveStatsReport:)) |
NS_SWIFT_NAME |
|
|
| |
|
optional |
Called when a new RTC statistics report has been collected.
You must enable statistics via MCClient/enableStats:completionHandler:
to start receiving this handler.
- Parameters:
- client: The Millicast client
- didReceiveStatsReport: A Stats report object. Contains various different stats. Use
MCStatsReport/getStatsOfType:
to extract statistics of different types like MCCodecsStats
for example.
◆ client:didReceiveViewerCount:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveViewerCount: |
|
(client(_:didReceiveViewerCount:)) |
NS_SWIFT_NAME |
|
|
| |
|
optional |
Called whenever a new viewer joins or leaves the stream.
- Parameters:
- client: The Millicast client
- didReceiveViewerCount: The current number of viewers connected to the stream.
◆ client:didReceiveWebsocketConnectionState:
- (void) client: |
|
(nonnull id< MCClient >) |
client |
didReceiveWebsocketConnectionState: |
|
(client(_:didReceiveWebsocketConnectionState:)) |
NS_SWIFT_NAME |
|
|
| |
|
optional |
Called when the WebSocket state has changed.
- Parameters:
- client: The Millicast client
- didReceiveWebsocketState: The current websocket state
The documentation for this protocol was generated from the following file: