Next Page > Hide TOC

QTCaptureLayer Class Reference

Inherits from
Conforms to
Framework
/System/Library/Frameworks/QTKit.framework
Availability
Available in QuickTime 7.2.1 and later.
Declared in
QTCaptureLayer.h

Overview

This class provides a layer that displays video frames currently being captured from a device attached to the computer, and is intended to provide support for Core Animation, that is, drawing the contents of a capture session into a layer. QTCaptureLayer renders a capture session within a layer hierarchy. Note that this class requires rendering using visual contexts.

Tasks

Creating Capture Layers

Class Methods

layerWithSession:

Creates an autoreleased QTCaptureLayer associated with the specified QTCaptureSession object.

+ (id)layerWithSession:(QTCaptureSession *)session

Parameters
session

The session with which to create an autoreleased QuickTime capture layer object.

Discussion

By default, the movie starts playing immediately at rate 1.0 from the beginning of the movie. These default characteristics can be modified by setting layer properties or movie properties

Availability
Declared In
QTCaptureLayer.h

Instance Methods

initWithSession:

Creates a QTCaptureLayer associated with the specified QTCaptureSession object.

- (id)initWithSession:(QTCaptureSession *)session

Parameters
session

The session with which to initialize the QuickTime capture layer object.

Discussion

By default, the movie starts playing immediately at rate 1.0 from the beginning of the movie. These default characteristics can be modified by setting layer properties or movie properties.

Availability
Declared In
QTCaptureLayer.h

session

Returns the capture session associated with a QTCaptureLayer object.

- (QTCaptureSession *)session

Parameters
session

The session returned by the QuickTime capture layer object.

Availability
Declared In
QTCaptureLayer.h

setSession:

Sets or resets the capture session associated with a QTCaptureLayer object.

- (void)setSession:(QTCaptureSession *)session

Parameters
session

The session set or reset by the QuickTime capture layer object.

Availability
Declared In
QTCaptureLayer.h

Next Page > Hide TOC


© 2009 Apple Inc. All Rights Reserved. (Last updated: 2009-04-06)


Did this document help you?
Yes: Tell us what works for you.
It’s good, but: Report typos, inaccuracies, and so forth.
It wasn’t helpful: Tell us what would have helped.