Embedding a QuickTime movie

A question from Askville:

I need code to add a Quicktime movie to a website (please see details).

I need an answer that isn’t too complex, since my javascript skills are only moderate. I know that Microsoft lost a lawsuit and that’s why the error message pops up. I’ve read that they will be making it work again in the future, so we won’t have to add all this extra stuff, but unfortunately I need something that works now. So if I use the normal object and embed tags, using Windows and IE, I see “Press spacebar or enter to activate this control” and for my client (who uses a Mac), it doesn’t autoplay (though I set it to true). Tried to use the js file from Macromedia/Adobe (AC_ActiveX.js), but need help (I use the one for flash a lot).

A cross-browser HTML would look something like this:

<object codebase="http://www.apple.com/qtactivex/qtplugin.cab"
  width="600"
  eight="400"
  classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B"><param
  name="src" value="[URL of your Quicktime movie]" /><param
  name="controller" value="True" /><param
  name="cache" value="False" /><param
  name="autoplay" value="True" /><param
  name="kioskmode" value="False" /><param
  name="scale" value="tofit" /><embed
  src="[URL of your Quicktime movie]"
  pluginspage="http://www.apple.com/quicktime/download/"
  scale="tofit"
  kioskmode="False"
  qtsrc="[URL of your Quicktime movie]"
  cache="False"
  width="600"
  height="400"
  controller="True"
  type="video/quicktime"
  autoplay="True"></embed></object>

Obviously, you will need to replace [URL of your Quicktime movie] with the actual URL of your Quicktime movie.  Note that the URL appears in THREE places…

This entry was posted in Answers, Technology. Bookmark the permalink.

Leave a Reply

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