MillicastSDK 2.0.0
|
A custom audio source that can be fed any raw audio data for publishing. More...
#import <source.h>
Instance Methods | |
(MCTrack *) | - startCapture |
(void) | - onAudioFrame: |
(bool) | - isCapturing |
(void) | - stopCapture |
Stops the underlying audio tracks and informs the SDK to stop any pending operations related to this custom source. | |
initWithCppSource: | |
Instance Methods inherited from MCSource | |
(MCSourceType) | - getType |
(NSString *) | - getName |
(NSString *) | - getUniqueId |
(NSString *) | - getTypeAsString |
A custom audio source that can be fed any raw audio data for publishing.
- (bool) isCapturing |
Query whether the source is currently capturing.
- (void) onAudioFrame: | (MCAudioFrame *) | frame |
To be called whenever the application wishes to feed audio frames to the source.
MCAudioFrame
and MCCMSampleBufferFrame
for possible audio frames to feed. Currently only 48kHz and 44.1kHz are supported sample formats. - (MCTrack *) startCapture |
Starts capture. Effectively creates an audio track that can be added to the publisher.
MCPublisher/addTrackWithAudioTrack:completionHandler:
to learn how to attach this track to a publisher. - (void) stopCapture |
Stops the underlying audio tracks and informs the SDK to stop any pending operations related to this custom source.