QuickTime for .NET and COM Developers

John Cromie

  • 出版商: Morgan Kaufmann
  • 出版日期: 2006-01-17
  • 售價: $2,960
  • 貴賓價: 9.5$2,812
  • 語言: 英文
  • 頁數: 360
  • 裝訂: Paperback
  • ISBN: 0127745750
  • ISBN-13: 9780127745756
  • 相關分類: .NET
  • 下單後立即進貨 (約2~3週)




At the heart of Apple's hugely popular iLife software suite—iMovie, iPhoto, iDVD, GarageBand, and iTunes—is QuickTime, the powerful media engine that drives elegant applications for managing movies, images, and audio files. The enduring success of QuickTime is in no small part attributable to its component architecture. This key feature has allowed it to embrace emerging digital media technologies and standards one by one as they have appeared over the 12 or so years since its launch. None of the competing technologies even comes close, let alone on both Mac OS X and Windows.

QuickTime for .NET and COM Developers is the first guide to QuickTime for developers using popular RAD tools such a Visual Basic .NET, C#, and Visual Basic 6. A general introduction to QuickTime is followed by a detailed explanation of the QuickTime architecture from a.NET and COM perspective, liberally accompanied by code snippets. A number of implementation examples illustrate key QuickTime features, ranging from a simple movie player to a sophisticated interactive application. Also covered is QuickTime scripting in both QuickTime Player (using Windows Scripting) and in Microsoft Office applications (using VBA). Brief guides to developing with QuickTime in Delphi and ATL/WTL are also included.

Part of the official Quicktime Developer Series, publishing the finest books on QuickTime in cooperation with Apple.


Table Of Contents

    About the Author

    Chapter 1. Introduction
      Why QuickTime?
    Why .NET and COM?
      COM Interop
    QuickTime Meets COM and .NET
    Who Is This Book For?
    What Should I Know Before Reading This Book?
    Code Samples
    Additional Resources
      .NET, Visual Basic, and C#
      Windows Scripting

    Chapter 2. Getting Started with the QuickTime Control
    Hello World!
    Simple Player—the Basics
      Opening and Closing Movies
      Controlling the Movie
      Getting Information about the Movie
      Scaling the Movie
      Full-Screen Movies
      Automatically Sizing the Form

    Chapter 3. Using the QuickTime Control
    The Apple QuickTime Control
    A COM control in .NET
      Get the Big Picture
      Loading a Movie
      Movie Scaling and Sizing
      A Resizable Window for Simple Player
      Background and Border
      Movie Controller
      Auto Play
      Control over Full-Screen Display
    Initializing QuickTime
      Is QuickTime Available?
    Probing Deeper

    Chapter 4. The QuickTime Object Model
    Object Models
    The QuickTime Object Model
      QTMovie and Its Offspring
      QTQuickTime and Its Offspring

    Chapter 5. Diving Deeper
    Essential Topics for Serious QuickTime Development
    QuickTime Events
      Registering for QuickTime Events
      Handling QuickTime Events
      Sample: QuickTime Events Demo
    QuickTime Metadata
    CFObject and Its Uses
      CFObject Collection
      CFObject Dictionary (CFDictionary)
      The Annotations CFDictionary
      Complex CFObject Data Structures
      Persistent CFObjects
    Error Handling

    Chapter 6. Create and Edit
    The Joy of Cut, Copy, and Paste
      Implementing the Edit Menu
      Saving the Movie
      Creating a New Movie
    Movie Builder
      Assembling a Movie
      Adding an Overlay
      Subtitling the Movie
    Summary of the Edit Capabilities of QTMovie
    Creating a Movie from Images
    SMIL the Movie
    Creating a Movie Using GDI
    Saving a New Movie

    Chapter 7. Browsing the Media
    For the Birds
      Design Decisions
      Picking the Components
      Building the Bare Bones
      Directory Browsing
      Media Display
      Wiring up the Connections
      Adding the QuickTime Control
      Media Inspector
      A Tooltip

    Chapter 8. Scripting QuickTime Player
    Scripting QuickTime on the Mac
    Windows Scripting Host
      COM (Automation) Server
    QuickTime Player: a COM Server
      Opening and Playing a Movie
      The QuickTime Player Object Model
      Working with Players
      A Movie Builder Script
      Batch Export from the Command Line
      Event Handlers
      Script Droplets
      Windows Scripting File (.wsf) format

    Chapter 9. QuickTime Meets Office
    QuickTime Development in Microsoft Excel and Access
      Adding the QuickTime Control
      ActiveX and Macro Security
      Adding a Play/Stop Cell
      Movie Inspector
      Movie Inspector with Annotation Editing
      Batch Processing: Movie Annotator
      Movie Display
      QuickTime Event Handling

    Appendix A QuickTime COM Library Reference
    QuickTime Control (QTOControlLib
    QuickTime Object Library (QTOLibrary

    Appendix B Additional COM Host Environments
    QuickTime Control Basics in Other COM Hosts
    Visual Basic 6
      Getting Started
      Adding a Load Button
      Adding a Play/Stop Button
      Resizing the Form to Fit the Control
      Responding to Manual Resize of the Form
      Porting Code Samples to Visual Basic 6 or Visual Basic for Applications (VBA)
      Getting Started
      Loading a Movie
      Playing the Movie
      Handling QuickTime Events
      Getting Started
      Adding the QuickTime Control
      Adding a Play/Stop Button
      Handling Events from the QuickTime Control
      QuickTime Events

    Appendix C QuickTime Exporter Types
    Exporter Types