...

View Full Version : QuickTime not playing mp4 in webpage



goldenthroat
12-26-2010, 05:52 PM
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
</embed>
</object>

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.

Thanks.

tfburges
12-27-2010, 05:49 AM
Where is test.mp4 located relative to the file containing the html you posted?

Try:

<a href="test.mp4">TEST</a>
...to see if you can download the file through that link. If not, you know for certain your path is wrong.

And I would assume you'd always want the type to be "video/mp4" unless Apple says otherwise.

sarenarichard
12-27-2010, 09:42 AM
Make sure you have provided the correct path, otherwise it will not show the file.

goldenthroat
12-28-2010, 10:25 PM
Where is test.mp4 located relative to the file containing the html you posted?

Try:

<a href="test.mp4">TEST</a>
...to see if you can download the file through that link. If not, you know for certain your path is wrong.

And I would assume you'd always want the type to be "video/mp4" unless Apple says otherwise.

I tried this and I get an error 404 "the page cannot be found". But I also put in a link to a straight HTML file in the same directory (it's all in the same directory as this file) and that one pulls up okay. So maybe it's just mp4s that aren't getting returned/found?

Shoot2Kill
12-28-2010, 10:45 PM
have you checked for case?

is it called *.mp4 or *.MP4 ?

is there an online version of the site we can see?

goldenthroat
01-14-2011, 06:00 PM
The case is correct, as is the spelling of the file name and the path. You can access the page here:

http://mcfarlandassociate.com/meivideos.html

I have 2 new leads on this.

1. The file needs to be "hinted" for streaming, which means it needs a new track added that facilitates dividing it up into appropriately sized pieces for web distribution. I'm looking for a free program that will add this hinting track, but haven't found one that works for me yet.

2. Flash videos don't need hinting. I found a free utility that converted my mp4s to Flash (.flv), but I need code to dynamically change the movie in the flash player, or to dynamically rewrite the player to the web page with the requested movie in it.

Any leads or thoughts will be welcome!

rswebs
01-14-2011, 09:11 PM
<embed src="your_mp4.mp4" width="300" height="40"></embed>

just make sure that your mp4 song has been uploaded too and that your mp4 song is in the same folder.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum