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 support for UIViewContentMode. The supported content modes are: UIViewContentModeScaleToFill, UIViewContentModeScaleAspectFill, and UIViewContentModeScaleAspectFit.

  orientation

The current orientation of the view’s content.

@property (nonatomic, assign, readonly) UIInterfaceOrientation orientation

Declared 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 videoDimensions

Discussion

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

Declared In

TVICameraPreviewView.h