Next Page > Hide TOC

QTMovieLayer Class Reference

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

Overview

This class provides a layer into which the frames of a QTMovie can be drawn, and is intended to provide support for Core Animation, that is, drawing the contents of a movie into a layer. QTMovieLayer renders a QTMovie within a layer hierarchy. Note that this class requires rendering using visual contexts. Do not attempt to directly modify the contents property of an QTMovieLayer object. Doing so will effectively turn it into a regular CALayer.

Tasks

Creating Movie Layers

Class Methods

layerWithMovie:

Creates an autoreleased QTMovieLayer associated with the specified QTMovie object.

+ (id)layerWithMovie:(QTMovie *)movie

Parameters
movie

The QuickTime movie with which to create an autoreleased QuickTime 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
Related Sample Code
Declared In
QTMovieLayer.h

Instance Methods

initWithMovie:

Creates a QTMovieLayer associated with the specified QTMovie object.

- (id)initWithMovie:(QTMovie *)movie

Parameters
movie

The QuickTime movie with which to initialize the QuickTime 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
QTMovieLayer.h

movie

Returns the movie associated with a QTMovieLayer object.

- (QTMovie *)movie

Availability
Declared In
QTMovieLayer.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.