Contents

Introduction

Added section on how to open QuickTime movies by specifying mov Document Types.

Who Should Read This Document

If you are a developer who wants to learn how to integrate playback, editing and recording of media into your application, you should read the material in this document to get started. You don’t necessarily need to be a seasoned Cocoa programmer to take advantage of the capabilities provided in the QTKit framework, although you’ll find prior experience working with Objective-C, Xcode, and Interface Builder helpful to build and compile the different code examples described in this tutorial.

Organization of This Document

This tutorial follows a progressive, learn-as-you-go structure. To be most successful, work through this tutorial in the order presented.

  • Creating a Simple QTKit Media Player Application describes how to build and compile a simple media player application, using Cocoa bindings and with a minimal number of lines of Objective-C code.
  • Extending the Media Player Application explains how you can extend and enhance the functionality of the media player application to support editing of video/audio files.
  • Customizing the Media Player Application discusses how you can extend the functionality of the media player application by adding custom controls and selecting attributes to handle the precise display and manipulation of high-definition, H.264-enabled movies. QuickTime X methods for more efficient media playback in your Xcode project are also discussed.
  • Building a Simple QTKit Recorder Application discusses step-by-step how you can build a simple yet powerful QTKit recorder application that lets you capture a video stream and record the media to a QuickTime movie.
  • Adding Audio Input and DV Camera Support describes how you can extend the functionality of your QTKit recorder player application by adding support for audio input and DV cameras with only a few lines of Objective-C code.
  • Creating a QTKit Stop Motion Application describes how you can construct a simple stop motion recorder application that lets you capture a live video feed, grab frames one at a time with great accuracy, and then record the output of those frames to a QuickTime movie––with less than 100 lines of Objective-C code.

What You Need

To build your QTKit media player and recorder projects, make sure you are running OS X v10.5 or later and have these Apple developer tools installed on your system:

  • Xcode 3.2 and Interface Builder 3.2. Apple provides a comprehensive suite of developer tools for creating OS X software. These tools include applications to help you design, create, debug, and optimize your software. The suite also includes header files, sample code, and documentation. You can download the Xcode tools from the Apple Developer Connection website. Registration is required, but free.

Sample Code

The tutorial is based on the following three code samples, which you can download from the Apple Developer Connection website or view from within Xcode:

See Also

For more information on the technologies and tools you use in this tutorial, consult the following Apple documentation:

The various QuickTime and Cocoa mailing lists also provide a useful developer forum for raising issues and answering questions that are posted. To subscribe, check out the QuickTime-API Mailing List and the Cocoa Development list .

Next

Copyright © 2016 Apple Inc. All Rights Reserved. Terms of Use | Privacy Policy | Updated: 2016-08-26