Object/embed tag not playing mp4 in QuickTime

The following code is supposed to play an mp4 movie in QuickTime on a web page. If I click on the file in Windows Explorer, it plays the file okay in IE or Firefox. But if I try to open it over the web, Firefox shows the big blue “Q” symbol of QuickTime and writes both the error messages, and IE displays a faded “Q” with a question mark over it. The Firefox Error Console shows no errors, warnings or messages.

The one clue I have is that Safari’s Error Console says “Failed to load resource: the server responded with a status of 404 (Not Found)” and gives the name of the video. But the path and name are both correct. And it’s finding the css file in the css folder no problem.

		<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" type="image/x-macpaint" height="480" width="640">
			<param name="src" value="test.mp4" />
			<param name="autoplay" value="true" />
			<param name="controller" value="true" />
			object failed to play movie
			<embed src="test.mp4" type="image/x-macpaint" pluginspage="http://www.apple.com/quicktime/download" height="480" width="640" autoplay="true controller="true">
				Failed to embed

Currently I’ve got the type set to “image/x-macpaint” but it behaves just the same when type is set to “video/mp4”. I also tried using the data attribute in the object tag instead of using a param tag to pass the src, but that didn’t work either. Is it some strange problem with the internal structure of my file? I have tried it with other mp4s and have the same problem.

I have also tested this in Opera and Chrome, and it doesn’t work in either of those either.

Any help or tips anyone can give me would be very much appreciated. I am testing this on a Dell PC running Windows XP SP3, Firefox 3.6.13 and IE 8. It also doesn’t work at home on a Dell running Windows 7 and the same browsers.

This is in a completely stripped down HTML file which I made for debugging this particular code. There is nothing else happening on the page at all.

Please let me know of any other information that would be helpful.


It certainly shouldn’t be type=“image/x-macpaint” I’d suspect it is supposed to be MIME type=“video/mp4” at the very least.

It could be you have the wrong classid value. For simple testing sake try this lone EMBED:

<embed src=“http://www.example.com/test.mp4” type=“video/mp4” width=“200” height=“200” />

Obviously substitute your website URL or use it locally on the HDD so adjust as appropriate. Make sure your browsers have the correct plugins and the file name is correctly spelt (and the file is not corrupt and was uploaded in binary mode) and of the correct case, etc.

If it doesn’t work with just that on the page you know your browser setup or file is faulty. Once you get that working you can try the correct method of using OBJECT.

Thank you for your suggestion. It turns out that the mp4 files need to be “hinted” for streaming - they need a hinting track added. I can’t find a free video editor that will do that for me. So I would love a tip in that direction.


The other way I could go is this: I successfully converted the files to Flash video (.flv) and now I need code to dynamically write the player (or change the flash movie in the existing player) to the appropriate place in the web page.