Cover image for QuickTime for Java: A Developer's Notebook

Book description

QuickTime Java (QJT) is a terrific multimedia toolkit, but it's also terrifying to the uninitiated. Java developers who need to add audio, video, or interactive media creation and playback to their applications find that QTJ is powerful, but not easy to get into. In fact, when it comes to class-count, QuickTime Java is nearly as large as all of Java 1.1. Once you learn the entire scope of Apple's QuickTime software, you really appreciate the problem. At its simplest, QuickTime allows Mac and Windows users to play audio and video on their computers. But QuickTime is many things: a file format, an environment for media authoring, and a suite of applications that includes browser plug-ins for viewing media within a web page, a PictureViewer for working with still pictures, QuickTime Streaming Server for delivering streaming media files on the Internet in real time, and QuickTime Broadcaster for delivering live events on the Internet. Among others. As if that weren't daunting enough, the javadocs on QJT are wildly incomplete, and other books on the topic are long out of date and not well regarded, making progress with QTJ extremely difficult. So what can you do? Our new hands-on guide, QuickTime Java: A Developer's Notebook, not only catches up with this technology, but de-mystifies it. This practical "all lab, no lecture" book is an informal, code-intensive workbook that offers the first real look at this important software. Like other titles in our Developer's Notebook series, QuickTime Java: A Developer's Notebook is for impatient early adopters who want get up to speed on what they can use right now. It's deliberately light on theory, emphasizing example over explanation and practice over concept, so you can focus on learning by doing. QuickTime Java: A Developer's Notebook gives you just the functionality you need from QTJ. Even if you come to realize that 95% of the API is irrelevant to you, this book will help you master the 5% that really counts.

Table of Contents

  1. QuickTime for Java: A Developer’s Notebook
    1. The Developer’s Notebook Series
      1. Notebooks Are...
      2. Notebooks Aren’t...
      3. Organization
    2. Preface
      1. Enter Biscotti
      2. Why a QuickTime for Java Book?
      3. Assumptions and Definitions
      4. Organization
      5. About the Examples
      6. Conventions Used in This Book
      7. Using Code Examples
      8. How to Contact Us
      9. Safari Enabled
      10. Acknowledgments
    3. 1. Getting Up and Running with QuickTime for Java
      1. Setting Up QTJ on Windows
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Embedding QuickTime in HTML
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Preflighting a QTJ Installation
        1. How do I do that?
        2. What just happened?
      4. Compiling QTJ Code
        1. How do I do that?
        2. What just happened?
        3. What about...
      5. Opening and Closing the QuickTime Session
        1. How do I do that?
        2. What just happened?
        3. What about...
      6. Playing an Audio File from the Command Line
        1. How do I do that?
        2. What just happened?
        3. What about...
    4. 2. Playing Movies
      1. Building a Simple Movie Player
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Adding a Controller
        1. How do I do that?
        2. What just happened?
      3. Getting a Movie-Playing JComponent
        1. How do I do that?
        2. What just happened?
        3. What about...
      4. Controlling a Movie Programmatically
        1. How do I do that?
        2. What just happened?
        3. What about...
      5. Showing a Movie’s Current Time
        1. How do I do that?
        2. What just happened?
        3. What about...
      6. Listening for Movie State-Changes
        1. How do I do that?
        2. What just happened?
        3. What about...
      7. Moving Frame by Frame
        1. How do I do that?
        2. What just happened?
        3. What about...
      8. Playing Movies from URLs
        1. How do I do that?
        2. What just happened?
      9. Preventing “Tasking” Problems
        1. How do I do that?
        2. What just happened?
        3. What about...
    5. 3. Editing Movies
      1. Copying and Pasting
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Performing “Low-Level” Edits
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Undoing an Edit
        1. How do I do that?
        2. What just happened?
        3. What about...
      4. Undoing and Redoing Multiple Edits
        1. How do I do that?
        2. What just happened?
      5. Saving a Movie to a File
        1. How do I do that?
        2. What just happened?
        3. What about...
      6. Flattening a Movie
        1. How do I do that?
        2. What just happened?
        3. What about...
      7. Saving a Movie with Dependencies
        1. How do I do that?
        2. What just happened?
        3. What about...
      8. Editing Tracks
        1. How do I do that?
        2. What just happened?
        3. What about...
    6. 4. Working with Components
      1. Specifying a Component’s Type
        1. How do I do that?
        2. What just happened?
      2. Exporting Movies
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Exporting Movies to Any Installed Format
        1. How do I do that?
        2. What just happened?
        3. What about...
      4. Importing and Exporting Graphics
        1. What just happened?
        2. What about...
      5. Discovering All Installed Components
        1. How do I do that?
        2. What just happened?
    7. 5. Working with QuickDraw
      1. Getting and Saving Picts
        1. How do I do that?
        2. What just happened?
        3. What about . . .
      2. Getting a Pict from a Movie
        1. How do I do that?
        2. What about . . .
      3. Converting a Movie Image to a Java Image
        1. How do I do that?
        2. What just happened?
      4. A Better Movie-to-Java Image Converter
        1. How do I do that?
        2. What just happened?
      5. Drawing with Graphics Primitives
        1. How do I do that?
        2. What just happened?
        3. What about . . .
      6. Getting a Screen Capture
        1. How do I do that?
        2. What just happened?
        3. What about . . .
      7. Matrix-Based Drawing
        1. How do I do that?
        2. What just happened?
      8. Compositing Graphics
        1. How do I do that?
        2. What just happened?
    8. 6. Capture
      1. Capturing and Previewing Audio
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Selecting Audio Inputs
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Capturing Audio to Disk
        1. How do I do that?
        2. What just happened?
        3. What about...
      4. Capturing Video to Disk
        1. How do I do that?
        2. What just happened?
        3. What about...
      5. Capturing Audio and Video to the Same File
        1. How do I do that?
        2. What just happened?
      6. Making a Motion Detector
        1. How do I do that?
        2. What just happened?
        3. What about...
    9. 7. Audio Media
      1. Reading Information from MP3 Files
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Reading Information from iTunes AAC Files
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Providing Basic Audio Controls
        1. How do I do that?
        2. What just happened?
      4. Providing a Level Meter
        1. How do I do that?
        2. What just happened?
        3. What about...
      5. Building an Audio Track from Raw Samples
        1. How do I do that?
        2. What just happened?
        3. What about...
    10. 8. Video Media
      1. Combining Video Tracks
        1. How do I do that?
        2. What just happened?
        3. What about...
      2. Overlaying Video Tracks
        1. How do I do that?
        2. What just happened?
        3. What about...
      3. Building a Video Track from Raw Samples
        1. How do I do that?
        2. What just happened?
      4. Overlaying Video Tracks
        1. How do I do that?
        2. What just happened?
        3. What about...
    11. 9. Miscellaneous Media
      1. Creating Captions with Text Media
        1. How do I do that?
        2. What just happened?
        3. What about...
        4. What just happened?
        5. What about...
      2. Creating Links with HREF Tracks
        1. How do I do that?
        2. What just happened?
      3. Adding Timecodes
        1. How do I do that?
        2. What just happened?
        3. What about...
      4. Creating Zero-Source Effects
        1. How do I do that?
        2. What just happened?
        3. What about...
      5. Creating One-Source Effects (Filters)
        1. How do I do that?
        2. What just happened?
        3. What about...
      6. Creating Two-Source Effects (Transitions)
        1. How do I do that?
        2. What just happened?
        3. What about...
    12. Index
    13. Colophon