1#ifndef webrtc_remote_track_h
2#define webrtc_remote_track_h
5#import <Foundation/Foundation.h>
8@protocol MCVideoRenderer;
9@protocol MCAudioRenderer;
21@protocol MCWebrtcRemoteTrackDelegate <NSObject>
48 didUpdateMID:(NSString * _Nullable)mid;
63@property(atomic, weak) id<MCWebrtcRemoteTrackDelegate> _Nullable
delegate;
66@property(nonatomic, assign, readonly) MCRemoteTrackKind
kind;
75@property(nonatomic, readonly) NSString * _Nonnull
currentMID;
78@property(nonatomic, readonly) NSString * _Nonnull
cName;
92- (void)unprojectWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
124 promote:(BOOL)promote
125 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
126 NS_SWIFT_NAME(project(rtsRemoteVideoTrack:layer:promote:completionHandler:));
138 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
139 NS_SWIFT_NAME(project(rtsRemoteVideoTrack:layer:completionHandler:));
147 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
148 NS_SWIFT_NAME(project(rtsRemoteVideoTrack:completionHandler:));
156- (void)addRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
157 completionHandler:(nonnull
void (^)(NSError * _Nullable))completionHandler
158 NS_SWIFT_NAME(addRenderer(_:completionHandler:));
164- (void)removeRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
165 completionHandler:(nonnull
void (^)(NSError * _Nullable))completionHandler
166 NS_SWIFT_NAME(removeRenderer(_:completionHandler:));
179- (void)currentProjectionWithCompletionHandler:(nonnull
void (^)(
MCRTSRemoteVideoTrack * _Nullable, NSError * _Nullable)) completionHandler;
203 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
204 NS_SWIFT_NAME(project(rtsRemoteAudioTrack:completionHandler:));
215- (void)setVolume:(
double)volume
216completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
217 NS_SWIFT_NAME(setVolume(_:completionHandler:));
219- (void)currentProjectionWithCompletionHandler:(nonnull
void (^)(
MCRTSRemoteAudioTrack * _Nullable, NSError * _Nullable)) completionHandler;
#define MILLICAST_API
Definition exports.h:51
The RTS logical track's audio interface.
Definition rts_remote_track.h:269
The RTS logical track's video interface.
Definition rts_remote_track.h:211
Definition rts_remote_track.h:154
The webrtc logical track's audio interface.
Definition webrtc_remote_track.h:187
Definition webrtc_remote_track.h:61
MCRemoteTrackKind kind
Either an Audio or Video track.
Definition webrtc_remote_track.h:66
id< MCWebrtcRemoteTrackDelegate > _Nullable delegate
Delegate to receive track related events.
Definition webrtc_remote_track.h:63
MCWebrtcRemoteAudioTrack *_Nullable asAudio()
NSString *_Nonnull cName
The cname of the track. Cname represents a grouping for synchronization purposes.
Definition webrtc_remote_track.h:78
NSString *_Nonnull currentMID
Definition webrtc_remote_track.h:75
MCWebrtcRemoteVideoTrack *_Nullable asVideo()
The webrtc logical track's video interface.
Definition webrtc_remote_track.h:100