1#ifndef rts_remote_track_h
2#define rts_remote_track_h
4#import <Foundation/Foundation.h>
6#import <MillicastSDK/exports.h>
7@protocol MCVideoRenderer;
19@property(nonatomic, readonly)
int width;
21@property(nonatomic, readonly)
int height;
28@property(nonatomic, readonly) NSString * _Nonnull encodingId;
29@property(nonatomic, readonly)
int bitrate;
31@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
32@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
33@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
34@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
35@property(nonatomic, readonly) NSNumber * _Nullable targetBitrate;
36@property(nonatomic, readonly) NSNumber * _Nullable targetFps;
37@property(nonatomic, readonly) NSNumber * _Nullable targetHeight;
38@property(nonatomic, readonly) NSNumber * _Nullable targetWidth;
50@property(nonatomic, readonly) NSArray<MCRTSRemoteTrackLayer *> * _Nonnull active;
53@property(nonatomic, readonly) NSArray<NSString *> * _Nonnull inactive;
55- (instancetype _Nonnull)init NS_UNAVAILABLE;
60@protocol MCRTSRemoteTrackDelegate <NSObject>
96 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateLayers:));
107 didUpdateMID:(NSString * _Nullable) mid
108 NS_SWIFT_NAME(rtsRemoteTrack(_:didUpdateMID:));
121 NS_SWIFT_NAME(rtsRemoteTrack(_:didReceiveTrackStats:));
136@property(atomic, weak) id<MCRTSRemoteTrackDelegate> _Nullable delegate;
139@property(nonatomic, readonly) NSString * _Nullable sourceID;
141@property(nonatomic, assign, readonly) MCRemoteTrackKind kind;
143@property(nonatomic, assign, readonly) BOOL isActive;
145@property(nonatomic, readonly) NSString * _Nullable currentMID;
155- (instancetype _Nonnull)init NS_UNAVAILABLE;
160- (void)disableWithCompletionHandler:(nonnull void (^)(NSError * _Nullable))
completionHandler;
177@property(nonatomic, strong) NSString * _Nullable encodingId;
180@property(nonatomic, readonly) NSNumber * _Nullable spatialLayerId;
185- (void)setSpatialLayerId:(
int)spatialLayerId;
188- (void)resetSpatialLayerId;
191@property(nonatomic, readonly) NSNumber * _Nullable temporalLayerId;
196- (void)setTemporalLayerId:(
int)temporalLayerId;
199- (void)resetTemporalLayerId;
202@property(nonatomic, readonly) NSNumber * _Nullable maxSpatialLayerId;
207- (void)setMaxSpatialLayerId:(
int)maxSpatialLayerId;
210- (void)resetMaxSpatialLayerId:(
int)maxSpatialLayerId;
213@property(nonatomic, readonly) NSNumber * _Nullable maxTemporalLayerId;
218- (void)setMaxTemporalLayerId:(
int)maxTemporalLayerId;
221- (void)resetMaxTemporalLayerId;
227- (instancetype _Nonnull)init NS_UNAVAILABLE;
241- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
243 promote:(BOOL)promote
244 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
254- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
255 promote:(BOOL)promote
256 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
266- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
268 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
275- (void)enableWithRenderer:(
id<MCVideoRenderer> _Nonnull)renderer
276 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
285- (instancetype _Nonnull)init NS_UNAVAILABLE;
290- (void)enableWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
300- (void)setVolume:(
double)volume
301completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler
#define MILLICAST_API
Definition exports.h:51
The RTS logical track's audio interface.
Definition rts_remote_track.h:284
Represents an layer entry in the layers event received by the media server.
Definition rts_remote_track.h:27
Definition rts_remote_track.h:48
Represents resolution of a video frame.
Definition rts_remote_track.h:18
int width
Width in pixels.
Definition rts_remote_track.h:19
int height
Height in pixels.
Definition rts_remote_track.h:21
instancetype _Nonnull NS_UNAVAILABLE()
Definition MCSubscriberStats.h:49
void NSError *_Nullable completionHandler
Definition viewer.h:126