MillicastSDK 2.2.0
Loading...
Searching...
No Matches
MCSource Class Reference

Gathers information about the source. More...

#include <source.h>

Inheritance diagram for MCSource:
Collaboration diagram for MCSource:

Instance Methods

(MCTrack *) - startCapture
 
(void) - onPixelBuffer:
 
(void) - onPixelBuffer:withTimestamp:
 
(bool) - isCapturing
 
(void) - stopCapture
 Stops capturing video.
 

Detailed Description

Gathers information about the source.

Method Documentation

◆ isCapturing

- (bool) isCapturing

Query whether the source is currently capturing.

  • Returns: True if the application is capturing, false otherwise.

◆ onPixelBuffer:

- (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.

  • Parameters:
    • pixelBuffer: ACVPixelBufferRef reference. The reference will be retained/decremented internally.

◆ onPixelBuffer:withTimestamp:

- (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.

  • Parameters:
    • pixelBuffer: A CVPixelBufferRef. The reference will be retained/decremented internally.
    • timestamp: The timestamp to the given frame. Will act as a capture timestamp.

◆ startCapture

- (MCTrack *) startCapture

◆ stopCapture

- (void) stopCapture

Stops capturing video.


The documentation for this class was generated from the following file: