Version: 1.0

Posted: 2008-02-22

Build Requirements: Mac OS X 10.5, QuickTime 7.4+

Runtime Requirements: Mac OS X 10.5. QuickTime 7.4+

View Source Code:

Download Sample (“QTCompressionOptionsWindow.zip”, 275.6K)
Download Sample (“QTCompressionOptionsWindow.dmg”, 342.2K)



Description

The QTCompressionOptionsWindow sample is based on QTKit Capture classes and acts as a test bed for the included QTCompressionOptionsWindow class. A Video Capture Device is required to run this sample.

QTCompressionOptionsWindow is a simple class that demonstrates one way to manage a user interface containing media compression options encapsulated in QTCompressionOptions objects. This re-usable class in completely self contained and has three parts; The nib file called QTCompressionOptionsWindow.nib, the Class Header called QTCompressionOptionsWindow.h and the implementation file called QTCompressionOptionsWindow.m. All three files must be included in any project using this object.

You can create a QTCompressionOptionsWindow instance by calling initWithMediaType: or by instantiating an instance in your Main.nib file and setting the delegate accordingly.

QTKit uses the QTCompressionOptions objects as a way to reference a set of compression settings for a particular type of media. QTCompressionOptions objects are used to describe compression settings for different types of media and are created from preset keys such as @"QTCompressionOptions120SizeH264Video" or @"QTCompressionOptionsHighQualityAACAudio". A set of currently supported keys may be returned dynamically using the compressionOptionsIdentifiersForMediaType method.

Document Revision History

Date Notes
2008-02-22Demonstrates how easy it is to manage QTCompressionOptions instances with a user interface.

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.