MillicastSDK 2.2.0
|
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.
/ Called when an attempt to connect to Millicast fails. / / - Parameters: / - client: The Millicast client / - error: The HTTP error received
/ 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.
@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.
@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.
/ Called when the WebSocket state has changed. / - Parameters: / - client: The Millicast client / - didReceiveWebsocketState: The current websocket state
/ Called when the RTC Peer Connection state has changed. / - Parameters: / - client: The Millicast client / - didReceiveRTCPeerConnectionState: The current RTC Peer Connection state
@end
/ MCScalabilityMode refers to Scalable Video Coding. This is only available for publishing. Please refer to the WebRTC standard to understand where these values come from typedef NS_CLOSED_ENUM(NSInteger, MCScalabilityMode) { MCScalabilityModeNone, MCScalabilityModeL1T2 NS_SWIFT_NAME(l1t2), MCScalabilityModeL1T2h NS_SWIFT_NAME(l1t2h), MCScalabilityModeL1T3 NS_SWIFT_NAME(l1t3), MCScalabilityModeL1T3h NS_SWIFT_NAME(l1t3h), MCScalabilityModeL2T1 NS_SWIFT_NAME(l2t1), MCScalabilityModeL2T1h NS_SWIFT_NAME(l2t1h), MCScalabilityModeL2T1Key NS_SWIFT_NAME(l2t1Key), MCScalabilityModeL2T2 NS_SWIFT_NAME(l2t2), MCScalabilityModeL2T3 NS_SWIFT_NAME(l2t3), MCScalabilityModeL2T2h NS_SWIFT_NAME(l2t2h), MCScalabilityModeL2T2Key NS_SWIFT_NAME(l2t2Key), MCScalabilityModeL2T2KeyShift NS_SWIFT_NAME(l2t2KeyShift), MCScalabilityModeL2T3h NS_SWIFT_NAME(l2t3h), MCScalabilityModeL3T1 NS_SWIFT_NAME(l3t1), MCScalabilityModeL3T2 NS_SWIFT_NAME(l3t2), MCScalabilityModeL3T3 NS_SWIFT_NAME(l3t3), MCScalabilityModeL3T3Key NS_SWIFT_NAME(l3t3Key), MCScalabilityModeS2T1 NS_SWIFT_NAME(s2t1), MCScalabilityModeS2T2 NS_SWIFT_NAME(s2t2), MCScalabilityModeS2T3 NS_SWIFT_NAME(s2t3), MCScalabilityModeS3T1 NS_SWIFT_NAME(s3t1), MCScalabilityModeS3T2 NS_SWIFT_NAME(s3t2), MCScalabilityModeS3T3 NS_SWIFT_NAME(s3t3), MCScalabilityModeS2T1h NS_SWIFT_NAME(s2t1h), MCScalabilityModeS2T2h NS_SWIFT_NAME(s2t2h), MCScalabilityModeS2T3h NS_SWIFT_NAME(s2t3h), MCScalabilityModeS3T1h NS_SWIFT_NAME(s3t1h), MCScalabilityModeS3T2h NS_SWIFT_NAME(s3t2h), MCScalabilityModeS3T3h NS_SWIFT_NAME(s3t3h) };
/ The MCConnectionOptions class gathers connection options. MILLICAST_API