Apple Developer Connection
Member Login Log In | Not a Member? Contact ADC

< Previous PageNext Page > Hide TOC

QuickTime and JavaScript

Recent versions of the QuickTime plug-in are fully scriptable using JavaScript in most browsers for the Mac OS and Windows.

There are a few different way to use JavaScript with QuickTime: you can use JavaScript to detect whether QuickTime is installed; you can use JavaScript to write the OBJECT and EMBED tags used to display QuickTime content; and you can control the QuickTime plug-in directly using JavaScript.

The QuickTime browser plug-in comes in multiple flavors. There are traditional Netscape-style plug-ins for the MacĀ OS and Windows, COM objects and ActiveX controls for Internet Explorer on Windows, and a Cocoa plug-in for Safari. All of these plug-ins present the exact same interfaces to JavaScript, as described in this document.

In addition to the QuickTime browser plug-in, QuickTime 7 and later include an ActiveX control that is scriptable using the COM interface from Visual Basic, JavaScript, or C#. That ActiveX control is not the same as the ActiveX version of the QuickTime browser plug-in. This document describes the JavaScript interface to QuickTime browser plug-ins, for client-side scripts running in a browser. If you want to develop Windows desktop applications or server-side scripts on the Windows OS using JavaScript and QuickTime, see QuickTime 7 for Windows Update Guide.

Important: Starting with QuickTime 7.1.5, you can no longer issue javascript:// URLs or call JavaScript functions directly from within a QuickTime movie. This feature was removed from QuickTime for security reasons. There are workarounds, however. See “Executing JavaScript Functions From QuickTime” for examples.

Contents:

Using JavaScript to Detect QuickTime
Using JavaScript to Embed QuickTime Content
Executing JavaScript Functions From QuickTime
Controlling QuickTime Using JavaScript
QuickTime DOM Events
QuickTime JavaScript Reference




< Previous PageNext Page > Hide TOC


Last updated: 2008-02-05




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.
Get information on Apple products.
Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Copyright © 2007 Apple Inc.
All rights reserved. | Terms of use | Privacy Notice