Version: 1.1

Posted: 2007-08-31

Build Requirements: Mac OS X 10.5, Xcode 3.0

Runtime Requirements: Mac OS X 10.5

View Source Code:

Download Sample (“QTKitPlayer.zip”, 123.0K)
Download Sample (“QTKitPlayer.dmg”, 166.1K)



Description

The QTKitPlayer application demonstrates some of the power and flexibility of the QuickTime Kit framework.

The document "QuickTime Kit Programming Guide" walks you through the various steps that you need to follow in order to build and run the simple media player application. You'll want to consult that document to understand how to work with the new QTKit palette and the new QuickTime Kit framework. The guide is available online in HTML and PDF formats at the Apple Documentation Reference Library website for free download.

The sample code in this Xcode project is intended as a learning example for Cocoa programmers who are new to QuickTime, or who want to use the new QuickTime Kit framework provided in Mac OS X v10.5.

When completed, your QTKitPlayer application will allow you not only to open and play QuickTime movies, but also to import and export them. This added capability means that your application will be able to import and display a wide range of media types that QuickTime understands and supports in Mac OS X, including but not restricted to MP4 clips, JPEG images, and audio files. In so doing, your application moves beyond a simple media player and provides useful functionality for handling a variety of media types.

You’ll be able to accomplish all of this by working with Interface Builder to construct the QTKitPlayer user interface and then by adding several hundred lines of Cocoa code to your Xcode project.

Beyond importing and exporting of QuickTime-supported media types, your completed QTKitPlayer application will also include editing capabilities more extensive than just cut, copy, and paste. You’ll add editing features such as add, add scaled, replace, and trim, which will enable you to edit QuickTime movies with greater control and precision. You'll also have new menu items that enable you to have greater control over movie playback.

If you follow the steps outlined in the "QuickTime Kit Programming Guide," you'll be able to add a movie inspector window to your QTKitPlayer application, as well as the capability to open and play streaming video and audio over the Web. In a later chapter of the guide, you'll learn how to add a kiosk-like capability to your player, so you can view a variety of multimedia content in a window and play that content simultaneously as audio, video, Flash, VR, or in other formats that QuickTime supports.

Document Revision History

Date Notes
2007-08-31Update for Mac OS X 10.5, added movie inspector window.
2006-01-10QTKit example code to open, edit, play, import and export QuickTime movies

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.