MillicastSDK 2.0.0
|
#import <rts_remote_track.h>
Instance Methods | |
(MCRTSRemoteVideoTrack *_Nullable) | - asVideo |
(MCRTSRemoteAudioTrack *_Nullable) | - asAudio |
(instancetype _Nonnull) | - NS_UNAVAILABLE |
(void) | - disableWithCompletionHandler: |
rtsRemoteTrackWithNativeTrack: | |
Properties | |
id< MCRTSRemoteTrackDelegate > _Nullable | delegate |
Delegate to receive track related events. | |
NSString *_Nullable | sourceID |
The source ID of the track's publisher. | |
MCRemoteTrackKind | kind |
Either an Audio or Video track. | |
BOOL | isActive |
Whether the track is currently active. | |
NSString *_Nullable | currentMID |
The current MID of the track. Useful to parse statistics based on the mid. | |
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.
- (MCRTSRemoteAudioTrack *_Nullable) asAudio |
Cast the track to it's true type if it is audio, otherwise, nil will be returned.
- (MCRTSRemoteVideoTrack *_Nullable) asVideo |
Cast the track to it's true type if it is video, otherwise, nil will be returned.
- (void) disableWithCompletionHandler: | (nonnull void(^)(NSError *_Nullable)) | completionHandler |
Disable the track. This makes the track stop receiving events/media.
- (instancetype _Nonnull) NS_UNAVAILABLE |
Implemented in MCRTSRemoteAudioTrack, and MCRTSRemoteVideoTrack.
|
readnonatomicassign |
The current MID of the track. Useful to parse statistics based on the mid.
|
readwriteatomicweak |
Delegate to receive track related events.
|
readnonatomicassign |
Whether the track is currently active.
|
readnonatomicassign |
Either an Audio or Video track.
|
readnonatomicassign |
The source ID of the track's publisher.