TVICameraPreviewView Class Reference
| Inherits from | UIView |
|---|---|
| Declared in | TVICameraPreviewView.h |
Overview
TVICameraPreviewView previews video captured by TVICameraCapturer.
This view uses the special preview path offered by AVCaptureVideoPreviewLayer. It offers some benefits
which are not provided by TVIVideoView such as frame accurate mirroring, and graceful support for UIViewContentMode.
The supported content modes are: UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFill, and UIViewContentModeScaleAspectFit.
orientation
The orientation of the view’s content. This value is updated by listening to UIApplicationWillChangeStatusBarOrientationNotification.
@property (nonatomic, assign, readonly) UIInterfaceOrientation orientationDeclared In
TVICameraPreviewView.h
videoDimensions
The dimensions of the preview feed, in the frame of reference specified by the TVICameraPreviewView’s orientation.
@property (nonatomic, assign, readonly) CMVideoDimensions videoDimensionsDiscussion
With default constraints the dimensions would be 640x480 in landscape, and 480x640 in portrait.
Declared In
TVICameraPreviewView.h