MillicastSDK 2.0.0
|
A Source that allows applications to feed their own raw CVPixelBuffers for publishing. More...
#import <source.h>
Instance Methods | |
(MCTrack *) | - startCapture |
(void) | - onPixelBuffer: |
(void) | - onPixelBuffer:withTimestamp: |
(bool) | - isCapturing |
(void) | - stopCapture |
Stops capturing video. | |
initWithCppSource: | |
Instance Methods inherited from MCSource | |
(MCSourceType) | - getType |
(NSString *) | - getName |
(NSString *) | - getUniqueId |
(NSString *) | - getTypeAsString |
A Source that allows applications to feed their own raw CVPixelBuffers for publishing.
- (bool) isCapturing |
Query whether the source is currently capturing.
- (void) onPixelBuffer: | (CVPixelBufferRef) | pixelBuffer |
To be called whenever the application wishes to feed a CVPixelBuffer to the source. This API does not copy the CVPixelBuffer if using H.264, which is hardware accelerated on Apple platforms. If using codecs other than H.264, an internal copy of the frame will occur.
- (void) onPixelBuffer: | (CVPixelBufferRef) | pixelBuffer | |
withTimestamp: | (CMTime) | timestamp | |
To be called whenever the application wishes to feed a CVPixelBuffer to the source along with a timestamp.
- (MCTrack *) startCapture |
Starts capture. Effectively creates a video track that can be added to the publisher.
MCPublisher/addTrackWithVideoTrack:completionHandler:
to learn how to attach this track to a publisher. - (void) stopCapture |
Stops capturing video.