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

Detailed Description

Delegate protocol that can be implemented to receive subscriber specific events.

Initialize the viewer with a delegate via MCSubscriber/initWithDelegate:

@optional / Emitted when the stream has been stopped via a request from the subscriber to unview. / - Parameters: / - subscriber: The Millicast subscriber. / - didReceiveStreamStopped: Event information.

  • (void) subscriber:(nonnull MCSubscriber*) subscriber didReceiveStreamStoppedEvent:(nonnull MCStreamStoppedEvent*) event NS_SWIFT_NAME(subscriber(_:didReceiveStreamStoppedEvent:));

/ Called when a new remote track has been added / - Parameters: / - subscriber: The Millicast subscriber. / - didReceiveRtsRemoteTrack: A remote published track.

  • (void) subscriber:(nonnull MCSubscriber*) subscriber didReceiveRTSRemoteTrack:(nonnull MCRTSRemoteTrack *) rtsRemoteTrack NS_SWIFT_NAME(subscriber(_:didReceiveRTSRemoteTrack:));

/ Called when a new Subscriber statistics report is available. / / You must enable statistics via MCClient/enableStats:completionHandler: / to start receiving this handler. / / - Parameters: / - subscriber: The Millicast subscriber / - didReceiveStats: A Stats object of type MCSubscriberStats with various stream information.

  • (void)subscriber:(nonnull MCSubscriber*)subscriber didReceiveStats:(nonnull MCSubscriberStats *)stats NS_SWIFT_NAME(subscriber(_:didReceiveStats:));

@end

/ The Credentials interface represent the credentials required for / connecting and subscribing to a Millicast stream. See the Streaming Dashboard MILLICAST_API


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