1#ifndef rts_remote_track_h
2#define rts_remote_track_h
6@protocol MCVideoRenderer;
18@property(nonatomic, readonly)
int width;
20@property(nonatomic, readonly)
int height;
27@property(nonatomic, readonly) NSString * _Nonnull encodingId;
28@property(nonatomic, readonly)
int bitrate;
30@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
31@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
32@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
33@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
34@property(nonatomic, readonly) NSNumber * _Nullable targetBitrate;
35@property(nonatomic, readonly) NSNumber * _Nullable targetFps;
36@property(nonatomic, readonly) NSNumber * _Nullable targetHeight;
37@property(nonatomic, readonly) NSNumber * _Nullable targetWidth;
49@property(nonatomic, readonly) NSArray<MCRTSRemoteTrackLayer *> * _Nonnull active;
52@property(nonatomic, readonly) NSArray<NSString *> * _Nonnull inactive;
54- (instancetype _Nonnull)init NS_UNAVAILABLE;
59@protocol MCRTSRemoteTrackDelegate <NSObject>
95 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateLayers:));
106 didUpdateMID:(NSString * _Nullable) mid
107 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateMID:));
120 NS_SWIFT_NAME(rtsRemoteTrack(_:didReceiveTrackStats:));
135@property(atomic, weak) id<MCRTSRemoteTrackDelegate> _Nullable delegate;
138@property(nonatomic, readonly) NSString * _Nullable sourceID;
140@property(nonatomic, assign, readonly) MCRemoteTrackKind kind;
142@property(nonatomic, assign, readonly) BOOL isActive;
144@property(nonatomic, readonly) NSString * _Nullable currentMID;
154- (instancetype _Nonnull)init NS_UNAVAILABLE;
159- (void)disableWithCompletionHandler:(nonnull void (^)(NSError * _Nullable))
completionHandler;
176@property(nonatomic, strong) NSString * _Nullable encodingId;
179@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
184- (void)setSpatialLayerId:(
int)spatialLayerId;
187- (void)resetSpatialLayerId;
190@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
195- (void)setTemporalLayerId:(
int)temporalLayerId;
198- (void)resetTemporalLayerId;
201@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
206- (void)setMaxSpatialLayerId:(
int)maxSpatialLayerId;
209- (void)resetMaxSpatialLayerId:(
int)maxSpatialLayerId;
212@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
217- (void)setMaxTemporalLayerId:(
int)maxTemporalLayerId;
220- (void)resetMaxTemporalLayerId;
226- (instancetype _Nonnull)init NS_UNAVAILABLE;
240- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
242 promote:(BOOL)promote
243 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
253- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
254 promote:(BOOL)promote
255 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
265- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
267 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
274- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
275 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
284- (instancetype _Nonnull)init NS_UNAVAILABLE;
289- (void)enableWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
299- (void)setVolume:(
double)volume
300completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
#define MILLICAST_API
Definition exports.h:51
The RTS logical track's audio interface.
Definition rts_remote_track.h:283
Represents an layer entry in the layers event received by the media server.
Definition rts_remote_track.h:26
Definition rts_remote_track.h:47
Represents resolution of a video frame.
Definition rts_remote_track.h:17
int width
Width in pixels.
Definition rts_remote_track.h:18
int height
Height in pixels.
Definition rts_remote_track.h:20
instancetype _Nonnull NS_UNAVAILABLE()
Definition MCSubscriberStats.h:49
void NSError *_Nullable completionHandler
Definition viewer.h:126