![]() | ![]() |
Quickie is a small MooTools class to embed QuickTime objects into your website. It is based on the Swiff class provided by MooTools so if you’re familiar with that class, you’ll find yourself at home with this one.
Download and extract Quickie, then copy the Quickie.js file into a web-accessible directory of your choice. There is a YUI compressed version in the Compressed folder for your convenience.
Link to the Quickie.js file in the head section of your document after the MooTools link. The example below assumes you extracted the files to a folder called “js”.
Add the following IE conditional code to the head section of your document. This object is necessary for IE to fire the QuickTime DOM events as detailed in the JavaScript Scripting Guide for QuickTime.
Finally, use the following JavaScript code example inside of a 'domready' or 'onLoad' function to create the Quickie object.
Quickie can attach listeners to any of the QuickTime DOM Events. To add an event, simply add another property in the options object which begins with ‘on’ followed by the name of the event you want to listen for with the first letter capitalized. No need to use the ‘qt_’ prefix. For example, to listen for the play event, you would add this to the options object:
IE is very picky with QuickTime events so there are some circumstances where it behaves wonkily, particularly with initialization events. I’m working on taming IE, but at the very least the major events (play, pause, etc) behave reliably.
So far, I’ve only been able to test Quickie in the following browsers. Should work in others, will list them here pending confirmation.
Safari 4 Internet Explorer 7 Firefox 3
Quickie is licensed under the MIT License. Use it, modify it, have fun with it… in any circumstance.
A note on comments here: These comments are moderated. No comments will show up until they are approved. Comments that are not productive (i.e. inflammatory, rude, etc) will not be approved.
Found a bug in this plugin? Please report it this repository's Github Issues.
blog comments powered by Disqus