MillicastSDK 2.2.0
|
@optional / Event received when the track, i.e. it's publishing source, has become active. / In other words the stream is being sent to the server and is viable on the viewing / client. The track is not enabled by default. The application can still call / disable() on this track to prevent it from being played. If the track / was previously disabled, the application must call enable() for the track / to be renderable. If the track was previously enabled by the application and is not / disabled by the application it will automatically start playing once it becomes / active. / - Parameters: / - rtsRemoteTrack: The remote track that has become active.
@optional / Event received when the track, i.e. it's publishing source, has become inactive. / In other words the publishers stream is no longer being sent to the server and is / thus no longer viewable on the viewing client. The track is not disabled by the SDK / when this event occurs. If the application wants to ensure the track will not / automatically be played once the source becomes active it should call disable() when / receiving this event. Then it is responsible for calling enable() on the Active event. / If the application does not disable on Inactive event, the track will automatically start / playing when the remote source becomes Active. / - Parameters: / - rtsRemoteTrack: The remote track that has become inactive.
@optional / Event received when there is Simulcast/SVC layers available for the remote track. Only / available for video tracks. / - Parameters: / - rtsRemoteTrack: The remote track receiving the layer events. / - rtsRemoteTrackLayers: The layer event data.
@optional / Event received when the underlying WebRTC MID has changed. This can happen / in cases of network dropouts or in general when the underlying peer connection has / been torn down. In general, keeping the MID handy is useful when parsing MCInboundRtpStreamStats
/ based on the mid, since each mid corresponds to one track. / - Parameters: / - rtsRemoteTrack: The remote track receiving the mid change. / - mid: The new mid.
@optional / Event received when a new Track statistics report is available. / / You must enable statistics via MCClient/enableStats:completionHandler:
/ to start receiving this handler. / / - Parameters: / - rtsRemoteTrack: The remote track for which a new stats is available. / - didReceiveStats: A Stats object of type MCTrackStats
with various stats information for the track.
@end
/ The RTS logical track. / This class represents a single media (audio or video) in the RTS stream. / The RTS tracks are created automatically when the service notifies about the / sources becoming active, can be used to enable simple streaming scenarios: / enable projection of the audio and video coming from the same source with / lip-sync, with a single video renderer attached to the video track. When the / RTS source goes inactive, streaming for them is automatically disabled. MILLICAST_API