#import <RTCAVFoundationVideoSource.h>
RTCAVFoundationVideoSource is a video source that uses webrtc::AVFoundationVideoCapturer. We do not currently provide a wrapper for that capturer because cricket::VideoCapturer is not ref counted and we cannot guarantee its lifetime. Instead, we expose its properties through the ref counted video source interface.
◆ adaptOutputFormatToWidth:height:fps:() [1/2]
- (void) adaptOutputFormatToWidth: |
|
(int) |
width |
height: |
|
(int) |
height |
fps: |
|
(int) |
fps |
|
|
| |
Calling this function will cause frames to be scaled down to the requested resolution. Also, frames will be cropped to match the requested aspect ratio, and frames will be dropped to match the requested fps. The requested aspect ratio is orientation agnostic and will be adjusted to maintain the input orientation, so it doesn't matter if e.g. 1280x720 or 720x1280 is requested.
◆ adaptOutputFormatToWidth:height:fps:() [2/2]
- (void) adaptOutputFormatToWidth: |
|
(int) |
width |
height: |
|
(int) |
height |
fps: |
|
(int) |
fps |
|
|
| |
Calling this function will cause frames to be scaled down to the requested resolution. Also, frames will be cropped to match the requested aspect ratio, and frames will be dropped to match the requested fps. The requested aspect ratio is orientation agnostic and will be adjusted to maintain the input orientation, so it doesn't matter if e.g. 1280x720 or 720x1280 is requested.
◆ initWithFactory:constraints:() [1/2]
◆ initWithFactory:constraints:() [2/2]
◆ NS_UNAVAILABLE() [1/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ NS_UNAVAILABLE() [2/2]
- (instancetype) NS_UNAVAILABLE |
|
|
|
◆ canUseBackCamera
- (BOOL) canUseBackCamera |
|
readnonatomicassign |
Returns whether rear-facing camera is available for use.
◆ capturer
|
readnonatomicassignimplementation |
◆ captureSession
- (AVCaptureSession *) captureSession |
|
readnonatomicassign |
Returns the active capture session.
◆ useBackCamera
Switches the camera being used (either front or back).
The documentation for this class was generated from the following files: