1#ifndef rts_remote_track_h
2#define rts_remote_track_h
6@protocol MCVideoRenderer;
17@property(nonatomic, readonly)
int width;
19@property(nonatomic, readonly)
int height;
26@property(nonatomic, readonly) NSString * _Nonnull encodingId;
27@property(nonatomic, readonly)
int bitrate;
29@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
30@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
31@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
32@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
33@property(nonatomic, readonly) NSNumber * _Nullable targetBitrate;
34@property(nonatomic, readonly) NSNumber * _Nullable targetFps;
35@property(nonatomic, readonly) NSNumber * _Nullable targetHeight;
36@property(nonatomic, readonly) NSNumber * _Nullable targetWidth;
48@property(nonatomic, readonly) NSArray<MCRTSRemoteTrackLayer *> * _Nonnull active;
51@property(nonatomic, readonly) NSArray<NSString *> * _Nonnull inactive;
53- (instancetype _Nonnull)init NS_UNAVAILABLE;
58@protocol MCRTSRemoteTrackDelegate <NSObject>
94 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateLayers:));
105 didUpdateMID:(NSString * _Nullable) mid
106 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateMID:));
121@property(atomic, weak) id<MCRTSRemoteTrackDelegate> _Nullable delegate;
124@property(nonatomic, readonly) NSString * _Nullable sourceID;
126@property(nonatomic, assign, readonly) MCRemoteTrackKind kind;
128@property(nonatomic, assign, readonly) BOOL isActive;
130@property(nonatomic, readonly) NSString * _Nullable currentMID;
140- (instancetype _Nonnull)init NS_UNAVAILABLE;
145- (void)disableWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
162@property(nonatomic, strong) NSString * _Nullable encodingId;
165@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
170- (void)setSpatialLayerId:(
int)spatialLayerId;
173- (void)resetSpatialLayerId;
176@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
181- (void)setTemporalLayerId:(
int)temporalLayerId;
184- (void)resetTemporalLayerId;
187@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
192- (void)setMaxSpatialLayerId:(
int)maxSpatialLayerId;
195- (void)resetMaxSpatialLayerId:(
int)maxSpatialLayerId;
198@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
203- (void)setMaxTemporalLayerId:(
int)maxTemporalLayerId;
206- (void)resetMaxTemporalLayerId;
212- (instancetype _Nonnull)init NS_UNAVAILABLE;
226- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
228 promote:(BOOL)promote
229 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
230 NS_SWIFT_NAME(enable(renderer:layer:promote:completionHandler:));
239- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
240 promote:(BOOL)promote
241 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
242 NS_SWIFT_NAME(enable(renderer:promote:completionHandler:));
251- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
253 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
254 NS_SWIFT_NAME(enable(renderer:layer:completionHandler:));
260- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
261 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
262 NS_SWIFT_NAME(enable(renderer:completionHandler:));
270- (instancetype _Nonnull)init NS_UNAVAILABLE;
275- (void)enableWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
285- (void)setVolume:(
double)volume
286completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
287 NS_SWIFT_NAME(setVolume(_:completionHandler:));
#define MILLICAST_API
Definition exports.h:51
The RTS logical track's audio interface.
Definition rts_remote_track.h:269
Definition rts_remote_track.h:119
Represents an layer entry in the layers event received by the media server.
Definition rts_remote_track.h:25
Definition rts_remote_track.h:46
The RTS logical track's video interface.
Definition rts_remote_track.h:211
Definition rts_remote_track.h:154
Represents resolution of a video frame.
Definition rts_remote_track.h:16
int width
Width in pixels.
Definition rts_remote_track.h:17
int height
Height in pixels.
Definition rts_remote_track.h:19
instancetype _Nonnull NS_UNAVAILABLE()