1#import <Foundation/Foundation.h>
2#import <MillicastSDK/exports.h>
12 MCDegradationPreferencesDisabled,
15 MCDegradationPreferencesMaintainResolution,
18 MCDegradationPreferencesMaintainFrameRate,
21 MCDegradationPreferencesBalanced,
24 MCDegradationPreferencesDefault
30 MCConnectionStateIdle,
32 MCConnectionStateConnecting,
34 MCConnectionStateConnected,
36 MCConnectionStateReconnecting,
38 MCConnectionStateDisconnecting,
40 MCConnectionStateFailed
66@property (copy) NSNumber* _Nonnull code;
68@property (copy) NSString* _Nonnull reason;
77@property (copy) NSString* _Nonnull reason;
83@protocol MCDelegate <NSObject>
90- (void) client:(nonnull
id<MCClient>) client didReceiveHTTPConnectionError:(nonnull
MCHTTPConnectionError*) error
91 NS_SWIFT_NAME(client(_:didReceiveHTTPConnectionError:));
97- (void) client:(nonnull
id<MCClient>) client didReceiveSignalingError:(nonnull
MCSignalingError*) error
98 NS_SWIFT_NAME(client(_:didReceiveSignalingError:));
111- (void)client:(nonnull
id<MCClient>) client didReceiveStatsReport:(nonnull
MCStatsReport *) report
112 NS_SWIFT_NAME(client(_:didReceiveStatsReport:));
119- (void)client:(nonnull
id<MCClient>) client didReceiveViewerCount:(
int)viewerCount
120 NS_SWIFT_NAME(client(_:didReceiveViewerCount:));
126- (void)client:(nonnull
id<MCClient>) client didReceiveWebsocketConnectionState:(MCConnectionState) state
127 NS_SWIFT_NAME(client(_:didReceiveWebsocketConnectionState:));
133- (void)client:(nonnull
id<MCClient>) client didReceiveRTCPeerConnectionState:(MCConnectionState) state
134 NS_SWIFT_NAME(client(_:didReceiveRTCPeerConnectionState:));
141 MCScalabilityModeNone,
142 MCScalabilityModeL1T2 NS_SWIFT_NAME(l1t2),
143 MCScalabilityModeL1T2h NS_SWIFT_NAME(l1t2h),
144 MCScalabilityModeL1T3 NS_SWIFT_NAME(l1t3),
145 MCScalabilityModeL1T3h NS_SWIFT_NAME(l1t3h),
146 MCScalabilityModeL2T1 NS_SWIFT_NAME(l2t1),
147 MCScalabilityModeL2T1h NS_SWIFT_NAME(l2t1h),
148 MCScalabilityModeL2T1Key NS_SWIFT_NAME(l2t1Key),
149 MCScalabilityModeL2T2 NS_SWIFT_NAME(l2t2),
150 MCScalabilityModeL2T3 NS_SWIFT_NAME(l2t3),
151 MCScalabilityModeL2T2h NS_SWIFT_NAME(l2t2h),
152 MCScalabilityModeL2T2Key NS_SWIFT_NAME(l2t2Key),
153 MCScalabilityModeL2T2KeyShift NS_SWIFT_NAME(l2t2KeyShift),
154 MCScalabilityModeL2T3h NS_SWIFT_NAME(l2t3h),
155 MCScalabilityModeL3T1 NS_SWIFT_NAME(l3t1),
156 MCScalabilityModeL3T2 NS_SWIFT_NAME(l3t2),
157 MCScalabilityModeL3T3 NS_SWIFT_NAME(l3t3),
158 MCScalabilityModeL3T3Key NS_SWIFT_NAME(l3t3Key),
159 MCScalabilityModeS2T1 NS_SWIFT_NAME(s2t1),
160 MCScalabilityModeS2T2 NS_SWIFT_NAME(s2t2),
161 MCScalabilityModeS2T3 NS_SWIFT_NAME(s2t3),
162 MCScalabilityModeS3T1 NS_SWIFT_NAME(s3t1),
163 MCScalabilityModeS3T2 NS_SWIFT_NAME(s3t2),
164 MCScalabilityModeS3T3 NS_SWIFT_NAME(s3t3),
165 MCScalabilityModeS2T1h NS_SWIFT_NAME(s2t1h),
166 MCScalabilityModeS2T2h NS_SWIFT_NAME(s2t2h),
167 MCScalabilityModeS2T3h NS_SWIFT_NAME(s2t3h),
168 MCScalabilityModeS3T1h NS_SWIFT_NAME(s3t1h),
169 MCScalabilityModeS3T2h NS_SWIFT_NAME(s3t2h),
170 MCScalabilityModeS3T3h NS_SWIFT_NAME(s3t3h)
177@property(nonatomic, assign) BOOL autoReconnect;
194- (nonnull instancetype) initWithMin: (
int) min max: (
int) max
195 NS_SWIFT_NAME(init(min:max:));
199@property(nonatomic, assign)
int minimum;
203@property(nonatomic, assign)
int maximum;
211@property(nonatomic, retain, nullable) NSString *sourceId;
214@property(nonatomic, retain, nullable) NSString *pinnedSourceId;
217@property(nonatomic, retain, nullable) NSArray *excludedSourceId;
220@property(nonatomic, assign) BOOL dtx;
223@property(nonatomic, assign)
int multiplexedAudioTrack;
227@property(nonatomic, retain, nullable) NSString *videoCodec;
230@property(nonatomic, retain, nullable) NSString *audioCodec;
234@property(nonatomic, assign) MCDegradationPreferences degradationPreferences;
240@property(nonatomic, assign) BOOL stereo;
243@property(nonatomic, assign)
int statsDelayMs;
246@property(nonatomic, assign)
int jitterMinimumDelayMs;
252@property(nonatomic, assign) BOOL disableAudio;
255@property(nonatomic, retain, nullable) NSNumber* maximumBitrate;
258@property(nonatomic, assign) MCScalabilityMode svcMode;
262@property(nonatomic, assign) BOOL simulcast;
265@property(nonatomic, retain, nullable) NSString *rtcEventLogOutputPath;
269@property(nonatomic,assign) BOOL recordStream;
272@property(nonatomic, assign, nullable) NSNumber *priority;
282@property(nonatomic, assign) BOOL forceSmooth;
286@property(nonatomic, retain, nullable) NSNumber *bweMonitorDurationUs;
289@property(nonatomic, retain, nullable) NSNumber *bweRateChangePercentage;
292@property(nonatomic, retain, nullable) NSNumber *upwardsLayerWaitTimeMs;
302- (void)connectWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
310 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
317- (void)connectWithWebsocketUrl:(nonnull NSString *)websocketUrl jwt:(nonnull NSString *)jwt
318 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
326- (void)connectWithWebsocketUrl:(nonnull NSString *)websocketUrl jwt:(nonnull NSString *)jwt
328 completionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
333- (void)isConnectedWithCompletionHandler:(nonnull
void (^)(BOOL connected)) completionHandler;
343- (void)disconnectWithCompletionHandler:(nonnull
void (^)(NSError * _Nullable)) completionHandler;
352- (void)enableStats:(BOOL)enable
353 completionHandler:(nonnull
void (^)(
void)) completionHandler;
#define MILLICAST_API
Definition exports.h:51
The BitrateSettings class allows customizing bitrate settings for publishing streams.
Definition client.h:45
BOOL disableBWE
Disable built-in bandwidth estimation algorithm that forces sending the maximum bitrate without any c...
Definition client.h:47
NSInteger startBitrateKbps
The start bitrate, in kilobits per second.
Definition client.h:56
NSInteger minBitrateKbps
The minimum bitrate, in kilobits per second.
Definition client.h:53
NSInteger maxBitrateKbps
The maximum bitrate, in kilobits per second.
Definition client.h:50
The Cleanup class is responsible for cleaning the memory of dynamic objects.
Definition client.h:359
The MCClientOptions class gathers options for the client.
Definition client.h:209
The MCConnectionOptions class gathers connection options.
Definition client.h:175
NSNumber * code
Definition client.h:62
NSString * reason
Definition client.h:63
NSString * reason
Definition client.h:74
Interface is a container for various different statistics.
Definition stats.h:469
typedef NS_CLOSED_ENUM(NSInteger, MCDegradationPreferences)
The DegradationPreferences enum. Based on the WebRTC standard
Definition client.h:9