TVICameraPreviewView Class Reference

Inherits from UIView
Declared in TVICameraPreviewView.h


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.


The orientation of the view’s content. This value is updated by listening to UIApplicationWillChangeStatusBarOrientationNotification.

@property (nonatomic, assign, readonly) UIInterfaceOrientation orientation

Declared In



The dimensions of the preview feed, in the frame of reference specified by the TVICameraPreviewView’s orientation.

@property (nonatomic, assign, readonly) CMVideoDimensions videoDimensions


With default constraints the dimensions would be 640x480 in landscape, and 480x640 in portrait.

Declared In