02.04.2013 Views

QuickTime Kit Programming Guide - filibeto.org

QuickTime Kit Programming Guide - filibeto.org

QuickTime Kit Programming Guide - filibeto.org

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

C H A P T E R 1<br />

The <strong>QuickTime</strong> <strong>Kit</strong> API<br />

A <strong>QuickTime</strong> movie consists of one or more tracks, each of which is associated with a single media.<br />

Similarly, a QTMovie is associated with one or more objects of type QTTrack, each of which is<br />

associated with a single QTMedia object. The QTTrack and QTMedia classes provide a number of<br />

methods for operating on <strong>QuickTime</strong> tracks and media.<br />

The QTDataReference class represents a data reference, which is <strong>QuickTime</strong>’s standard way of picking<br />

out movie data, whether stored in files, URLs, memory blocks, or elsewhere.<br />

The <strong>QuickTime</strong> <strong>Kit</strong> also defines the QTTime and QTTimeRange structures for representing specific<br />

times and time ranges in a movie or track.<br />

QTMovie<br />

The QTMovie class represents a <strong>QuickTime</strong> movie, which is a collection of playable and editable<br />

media content. A movie describes the sources and types of the media in that collection and their<br />

spatial and temporal <strong>org</strong>anization. These collections may be used for presentation (such as playback<br />

on the screen) or for the <strong>org</strong>anization of media for processing (such as composition and transcoding<br />

to a different compression type).<br />

Just as a <strong>QuickTime</strong> movie contains a set of tracks, each of which defines the type, the segments, and<br />

the ordering of the media data it presents, a QTMovie object is associated with instances of the QTTrack<br />

class. In turn, a QTTrack object is associated with a single QTMedia object.<br />

A QTMovie object can be initialized from a file, from a resource specified by a URL, from a block of<br />

memory, from a pasteboard, or from an existing <strong>QuickTime</strong> movie.<br />

Once a QTMovie object has been initialized, it is used in combination with a QTMovieView for<br />

playback.<br />

The QTMovie class includes an extensive number of instance and class methods that let you perform<br />

a wide range of operations on <strong>QuickTime</strong> movies. Some of these capabilities include:<br />

■ Creating and initializing a QTMovie object<br />

■ Getting a list of supported file types<br />

■ Setting movie properties and attributes<br />

■ Getting and setting selection times<br />

■ Getting movie tracks and movie images<br />

■ Storing movie data<br />

■ Controlling movie playback<br />

■ Editing and saving a movie<br />

■ Getting QTMovie primitives—that is, getting the movie or movie controller associated with a<br />

QTMovie object<br />

The QTMovie class also includes a large number of constants you can use to specify movie attributes.<br />

The <strong>QuickTime</strong> <strong>Kit</strong> Classes 13<br />

2005-11-09 | © 2004, 2005 Apple Computer, Inc. All Rights Reserved.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!