2#import <MillicastSDK/exports.h>
26@property (copy) NSString* _Nonnull description;
33@protocol MCSubscriberDelegate <MCDelegate>
41 NS_SWIFT_NAME(subscriber(_:didReceiveStreamStoppedEvent:));
48 NS_SWIFT_NAME(subscriber(_:didReceiveRTSRemoteTrack:));
56@property (nonatomic, strong, nonnull) NSString*
streamName;
59@property (nonatomic, strong, nonnull) NSString*
token;
62@property (nonatomic, strong, nonnull) NSString*
accountId;
65@property (nonatomic, strong, nonnull) NSString*
apiUrl;
72@property(nonatomic, weak) id<MCSubscriberDelegate> delegate;
79- (instancetype) initWithDelegate:(id<MCSubscriberDelegate> _Nullable) delegate;
87- (void) subscribeWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
94- (void) subscribeWithOptions: (
MCClientOptions *) opts completionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
99- (void) isSubscribedWithCompletionHandler:(nonnull void (^)(BOOL subscribed)) completionHandler;
107- (void) unsubscribeWithCompletionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
113- (void) audioTracksWithCompletionHandler:(nonnull void (^)(NSArray<MCRTSRemoteAudioTrack *> * _Nullable, NSError * _Nullable)) completionHandler;
119- (void) videoTracksWithCompletionHandler:(nonnull void (^)(NSArray<MCRTSRemoteVideoTrack *> * _Nullable, NSError * _Nullable)) completionHandler;
128- (void) addWebrtcRemoteTrackWithKind:(MCRemoteTrackKind)kind
129 cname:(NSString * _Nonnull)cname
130 completionHandler:(nonnull void (^)(
MCWebrtcRemoteTrack * _Nullable, NSError * _Nullable)) completionHandler
131 NS_SWIFT_NAME(addWebrtcRemoteTrack(kind:cname:completionHandler:));
137- (void) webrtcAudioTracksWithCompletionHandler:(nonnull void (^)(NSArray<MCWebrtcRemoteAudioTrack *> * _Nullable, NSError * _Nullable)) completionHandler;
143- (void) webrtcVideoTracksWithCompletionHandler:(nonnull void (^)(NSArray<MCWebrtcRemoteAudioTrack *> * _Nullable, NSError * _Nullable)) completionHandler;
149- (void) setCredentials: (nonnull
MCSubscriberCredentials*) credentials completionHandler:(nonnull void (^)(NSError * _Nullable)) completionHandler;
154- (void) getCredentialsWithCompletionHandler:(nonnull void (^)(
MCSubscriberCredentials * _Nonnull)) 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
The RTS logical track's audio interface.
Definition rts_remote_track.h:269
Definition rts_remote_track.h:119
The RTS logical track's video interface.
Definition rts_remote_track.h:211
NSString * description
Definition viewer.h:23
NSString * token
The subscribing token.
Definition viewer.h:59
NSString * apiUrl
The subscribe API URL.
Definition viewer.h:65
NSString * accountId
Your Millicast account ID.
Definition viewer.h:62
NSString * streamName
The name of the stream you want to subscribe to.
Definition viewer.h:56
The Subscriber class manages the subscription to audio and video tracks from the Millicast platform.
Definition viewer.h:70
Responsible for managing video capture session from a video source.
Definition track.h:33
The webrtc logical track's audio interface.
Definition webrtc_remote_track.h:187
Definition webrtc_remote_track.h:61
The webrtc logical track's video interface.
Definition webrtc_remote_track.h:100
The Client base that contains common methods between MCPublisher and MCSubscriber.
Definition client.h:297