Embed QuickTime Module for Drupal 6

I have translated my jQuery plugin for embedding QuickTime movies on webpages into a Drupal module. It has the following features:

  • Inserts the jQuery files and the required javascript code on pages automatically on all node pages.
  • Inserts a code generator on add node forms (for enabled node types) that allows to send the correctly formatted HTML to the body field automatically. If Javascript is disabled it degrades gracefully and a code example is shown in place of the code generator.

You can download the module — all required files are included and there's no need for you to grab the plugin separately.

The module was written for Drupal 6 using the new Drupal.behaviors object and menu system. It will not work for Drupal 5 and below. It should be straightforward to backport as the module is very small.

Installation notes: Enable the module, edit the content type you wish to enable the code generator for (the setting is under "workflow"). The module has two access permissions: administer embed quicktime (users can enable/disable embed quicktime for node types); embed quicktime moves (users see the code generator on the node add form). Note: Setting the access permissions only affect the code generator. Anyone who can post the correctly formatted HTML will be able to post embedded QuickTime movies.

If you use the Metadata plugin to set options as described on the jQuery plugin page you need to use Full HTML as your input format in Drupal. I used Filtered HTML and it garbled the attributes and the metadata was lost.

7 comments

I found your plugin in a search to imbed quicktime video in my WordPress blog.
I have uploaded the folder to the content/plugin folder and activated the plugin in my manager. I am mystified by the URL field for the video, the video I want to use is on my desktop. I put the path in the URL field and nothing happens. No video goes into my editing window.
How do I get it to work?
thanks
Sage

Sage, naturally you must first upload your video to the web. Either to your own hosting account or to one of the many video providers such as blip.tv. After uploading you take that video URL and paste into the video URL field. This plugin/module does not take care of the uploading.

I am running drupal. I have installed the module, is their a way to access it via blocks? Or is it only available via a content type?

Got it to work! The code generated was incorrect, when i followed the module and did it manually it worked. Thanks for a great module.

Hi, I also have a drupal install and got the module to work with ease, thank you. However, on my front page, when I use it, the video opens in a new window. Any ideas as to why this may be happening?

[...] the Drupal 5 version of Embed QuickTime module and install if you want videos to play [...]

I just installed this module for Drupal 6.13 but I cannot find any "setting 'workflow'" to set any content types. Am I missing something?

Add your comment

The content of this field is kept private and will not be shown publicly.
  • Web page addresses and e-mail addresses turn into links automatically.
  • Allowed HTML tags: <a> <em> <strong> <cite> <code> <ul> <ol> <li> <dl> <dt> <dd> <p>
  • Lines and paragraphs break automatically.

Recent photos

About the blog

This is the personal website of Andreas Haugstrup Pedersen: commentary on media, communi­cation, culture and technology. Read more»