QuickTime Embedding Plugin

I got tired of my XML-RPC posts with QuickTime movies messing up the design of my blog. WordPress automatically adds paragraph breaks embed and object tags. This plugin corrects that behavior and doesn’t require the user to know how to create those tags. Additionally, starting with version 1.3b, this plugin uses JavaScript to get around the ActiveX alert on Windows versions of IE.

Download the Plugin

To install, download and extract the zip file. Upload the two files to your WordPress plugins folder (not including the directory). Once it is there, you can activate it from the WP administration pages.

After it is installed, you can us the following syntax to embed a QuickTime movie in a post:

[QUICKTIME http://www.xxxx.com/quicktime.mov 320 257]
or to use a poster frame or movie (in version 1.1b and above):
[QUICKTIME http://x.com/quicktime.mov http://x.com/poster.mov 320 257]

Always start with a bracket “[” followed by “QUICKTIME” then the path to the file, the width and the height. End with a closing bracket “]”.

A couple of notes about “poster frames/movies”: It should be the case that you can just use a jpeg or other image file as a poster movie as QuickTime can handle those formats. Unfortunately, this confuses several browsers so it is best to stick with using a movie as a poster movie.
Here is the one that I have started to use Here is a page that you can see it in action on.
To create your own, create a JPEG or GIF or PNG file and open it up with QuickTime Pro and “Save As” a “Self Contained Movie”.

One other thing to be conscious of regarding poster movies is that WordPress may be confused by them and not put the appropriate “enclosure” in your RSS feed for applications like FireAnt. This may or may not be a problem but is worth being aware of.

Starting with version 1.2b, I have implemented the ability to specify whether or not the video should auto start/autoplay and/or have a controller. To use these two options you would form the tag as follows:
[QUICKTIME http://x.com/quicktime.mov 320 257 true false]

The first “true” or “false” value is whether or not it should auto play and the second is whether or not a controller should be visible.

One thing that you should note is that it doesn’t really make sense to use a poster movie with movies that don’t auto play and it doesn’t really make sense to not have a controller for movies that don’t auto play.

If you like this script or are having problems with it, let me know, leave a comment below.

Of course, updates and additions to the script are appreciated. If you are interested, I use it at: MobVCasting and Open Vlog.

Last, if you are looking for a similar solution that will work with Flash and Windows Media as well as QuickTime and not only WordPress but Blogger and other places, check out Enric’s videos Playing In Place

You might also be interested in the latest tool that I have been working on for WordPress, a video commenting plugin

Last, here is a new version (actually, not a version of this but a complete rewrite with different capabilities, meaning don’t remove this plugin when you install the new one, your original videos will probably stop working): New QuickTime Audio/Video Posting Plugin for WordPress

Join the Conversation

168 Comments

  1. Hey, thanks for the sweet plugin, I am using a page template to pull posts from a catogory to display on my page. When I post the quicktime line to the category it comes up in the page just as the typed line. Any ideas on how I can make this work.

    Thanks

  2. Pingback: -- Robot inc.
  3. What I want to do on my blog, is every few hours take the oldest post and move it to the
    front of the queue, all automatically. Anyone know if there is a plugin that can do this or
    a simple way to set up another plugin to do this (use my own feed perhaps)?
    Thanks.

  4. Thanks for this plugin, it’s great. It worked straight away and will save loads me time updating my doco site,

    so thanks and keep up the good work :)

  5. Hi:

    First of all, congratulations for your plug in!!
    . I have a podcast site, and some are m4a and mov files. When I load a category page (for example, http://www.podcaster.cl/category/djs/radio-guerritas/), it look like the quicktime file loads completely… I need to be a very light page. I used your “false true” suggestions, so it won’t start automatically… but it appears that it starts loading automatically, so the page gets real slow.
    Do you know if it’s possible for the files not to start loading ??
    Greetings from Chile

  6. Hi Alejandro,

    The “poster frame” should prevent the page from loading really slowly as the video doesn’t actually display. Are you finding that the page just doesn’t show or that it shows but continues loading?

    In any case, I would suggest using a pop-up window or a more elegant/complex javascript solution such as offered by vPIP. Sorry this plugin is meant to be really simple and doesn’t handle things like that. On the other hand, you could probably hack that in pretty easily by making an “on click” on an image and loading the QuickTime tags there. You will probably need to wrap a div around it all.

    Hope that helps somewhat..

  7. Ooh.. Yes, that is a big conflict. I will write to the “youtube brackets” developer and ask him to change his variable and function names (he used this plugin as a starting point and seems to have kept all of the same names).

  8. Great plugin! I’m having a bit of trouble getting the kiosk mode to work though. I added the necessary code you posted above but it still has the option to save it by simple right click. Any ideas? Website is at alexissdawn dot com / blog

  9. Hi Alexiss,

    I think you missed part of the instructions:

    add the following code around line 150:

    $tag_line = “<param name=\”KIOSKMODE\” VALUE=\”true\” />”;
    $tags .= $tag_line . “\n”;
    $script_tags .= “ourTags+='” . $tag_line . “‘;\n”;

    Currently, it is working in kioskmode for people not using IE but the above will make it work for IE as well.

    Let me know if that works out for you..

  10. I added the code at about line 150 but kiosk mode is still not working in IE. It is in everything else though. I have cleared the cache and tried on a couple of different computers but still no kiosk mode for IE. Any ideas? (I hate IE…)

  11. Hi Alexiss,

    Glad you got it going. Please let me know if there is anything I missed in the instructions regarding Kiosk mode that I should have included.

    -shawn

  12. To all of you newbies like me who can’t get it to work, try deactivating other QT plugins that you may have installed. That seemed to do something for me. At least.

    Great plugin, saved me hours of grief!

  13. Thanks for the plugin, it’s exactly what I’ve been looking for but I get a plugin error at random times that crashes IE on me and other times it works like it should.

    I was reading that IE doesnt like embeded video and needs the object tag for it to play nice but I dont know where to add it into the html or if it would even help.

    Any ideas?

    Thanks

  14. Hi Chris,

    That is definitely strange behavior. Do you have any sense of when it crashes? Can you make it crash by doing something in particular?

    The plugin uses both the object and embed tags so I don’t think that is the problem. It is using a very standard way of showing video in a page so things shouldn’t really be unstable. Is it possible that it is more of a QuickTime/IE issue than an issue with this plugin? Does the browser seem to crash on other sites?

    Let me know..

  15. I can’t get the plugin to work. I see the embedded stuff when I view the source of the page, but I don’t see the player. Here’s the HTML as it’s generated (I’ve changed the URL of the Quicktime below because I’m not allowed to make the video public):

    ';
    ourTags+='';
    ourTags+='';
    ourTags+='';
    ourTags+='';
    ourTags+='';
    ourTags+='';
    if (typeof writeTags == "undefined") { document.write(theTags);} else {writeTags(ourTags);
    }//-->

  16. Hi Jamie,

    Any chance you have javascript turned off on your browser? It should still work but just wondering..

    QuickTime as well, you must have QuickTime installed. Perhaps re-installing QuickTime if it was installed before your browser.

    Also, if you could send over the platform and version along with browser and QuickTime versions that would help..

    -shawn

  17. Hi Shawn- Love your plugin, but I’m having a small problem. My poster movie is being scaled larger to take up the space given, just as is expected, but when you click on the poster movie to load the actual movie, it loads and plays at the original unscaled size. You can see an example here: http://www.natecarroll.com/2007/06/08/i-made-lamps/

    If you have any suggestions to remedy this, I’d love to hear!

    (Also, on the 1.3.5 version of your plugin, I was getting a parse error- variable theTags cannot be found, but I got the plugin working by substituting “ourTags” for “theTags” in the following snippet. )

    if (typeof writeTags == "undefined") { document.write(theTags);} else {writeTags(ourTags);
    }//-->

  18. Nate,

    Thanks for pointing out the typo with “theTags” vs. “ourTags”. I fixed that.

    Unfortunately, it means that something is wrong and that the writeTags function which is required to get around the IE/EOLAS patent issues isn’t found. Generally this is due to putting it in the wrong place or putting the files inside of a folder in the plugins folder. Both files should just be placed in the plugins folder and not inside any other folders.

    For everyone else: I just updated the plugin, fixing two issues, one with Firefox and the embed tag and one with the typo Nate identified.

    Still working on the scale issue…

  19. hi Shawn,
    great plugin! I tried to be clever with the posterframe and created one 16 pixels bigger the the actual movie and I put “click on image to play” where the controls would be. it didn’t work since it seems the bigger posterframe got rescaled to fit the original movie size and therefore still displays the controls. is there a way to make this work?
    thanks,
    MAx

Leave a comment

Your email address will not be published. Required fields are marked *