2#import <MillicastSDK/exports.h>
24- (void) publisherDidReceiveFirstViewerActive: (nonnull
MCPublisher*) publisher;
30- (void) publisherDidReceiveLastViewerInactive: (nonnull
MCPublisher*) publisher;
43@property (nonatomic, strong) NSString*
token;
46@property (nonatomic, strong) NSString*
apiUrl;
53@property(nonatomic, weak) id<MCPublisherDelegate> delegate;
58- (instancetype) initWithDelegate: (nullable id<MCPublisherDelegate>) delegate;
67- (void) publishWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
75 completionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
82- (void) unpublishWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
88- (void) isPublishingWithCompletionHandler:(nonnull void (^)(BOOL publishing)) completionHandler;
96 completionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
101- (void) getCredentialsWithCompletionHandler: (nonnull void (^)(
MCPublisherCredentials * _Nonnull)) completionHandler;
108- (void) addTrackWithVideoTrack:(nonnull
MCVideoTrack*) videoTrack
109 completionHandler:(nonnull void (^)(void)) completionHandler;
116- (void) addTrackWithAudioTrack:(nonnull
MCAudioTrack*) audioTrack
117 completionHandler:(nonnull void (^)(void)) completionHandler;
122- (void) clearTracksWithCompletionHandler:(nonnull void (^)(void)) completionHandler;
128-(void) recordWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
136-(void) unrecordWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
#define MILLICAST_API
Definition exports.h:51
Manages and plays a single audio resource.
Definition track.h:51
The MCClientOptions class gathers options for the client.
Definition client.h:209
Definition publisher.h:38
NSString * apiUrl
The publish API URL.
Definition publisher.h:46
NSString * streamName
The name of the stream to publish.
Definition publisher.h:40
NSString * token
The publishing token.
Definition publisher.h:43
The Publisher interface is responsible for publishing media to a Millicast stream.
Definition publisher.h:51
Represents a captured instance of a media source.
Definition track.h:10
Responsible for managing video capture session from a video source.
Definition track.h:33
The Client base that contains common methods between MCPublisher and MCSubscriber.
Definition client.h:297