MillicastSDK 1.8.4
|
#import <viewer.h>
Instance Methods | |
(void) | - onSubscribed |
Called when the subscriber starts receiving media. | |
(void) | - onVideoTrack:withMid: |
(void) | - onAudioTrack:withMid: |
(void) | - onActive:tracks:sourceId: |
(void) | - onInactive:sourceId: |
(void) | - onStopped |
Callback is not currently used, but is reserved for future usage. | |
(void) | - onVad:sourceId: |
(void) | - onLayers:activeLayers:inactiveLayers: |
(void) | - onFrameMetadata:withLength:withSsrc:withTimestamp: |
Delegate protocol that can be implemented to receive subscriber specific events. Initialize the viewer with a delegate via MCSubscriber/initWithDelegate:
- (void) onActive: | (nonnull NSString *) | streamId | |
tracks: | (nonnull NSArray< NSString * > *) | tracks | |
sourceId: | (nonnull NSString *) | sourceId | |
Called when a new source has been publishing within the new stream
- (void) onAudioTrack: | (nonnull MCAudioTrack *) | track | |
withMid: | (nonnull NSString *) | mid | |
Called when a remote audio track has been added.
|
optional |
Called when a frame is received and not yet decoded. Provide extracted metadata embedded in a frame if any. Any data provided by MCPublisherDelegate/onTransformableFrame:withSsrc:withTimestamp:
can be accessed here.
- (void) onInactive: | (nonnull NSString *) | streamId | |
sourceId: | (nonnull NSString *) | sourceId | |
Called when a source has been unpublished within the stream
AccountID/StreamName
.- (void) onLayers: | (nonnull NSString *) | mid | |
activeLayers: | (nonnull NSArray< MCLayerData * > *) | activeLayers | |
inactiveLayers: | (nonnull NSArray< NSString * > *) | inactiveLayers | |
Called when simulcast/svc layers are available
- (void) onStopped |
Callback is not currently used, but is reserved for future usage.
- (void) onSubscribed |
Called when the subscriber starts receiving media.
- (void) onVad: | (nonnull NSString *) | mid | |
sourceId: | (nonnull NSString *) | sourceId | |
Called when a source id is being multiplexed into the audio track based on the voice activity level.
- (void) onVideoTrack: | (nonnull MCVideoTrack *) | track | |
withMid: | (nonnull NSString *) | mid | |
Called when a remote video track has been added.