HTML Embed tag with Autoplay not working with MP4 file

Hi,

I've added this embed tag for my MP4 movie:
<embed src="myMovie.mp4" width="502" height="309" autoplay="true" scale="tofit">

It's about 40 Mb big - so I obviously want to start playing as soon as possible so viewers will not wait for a long download. Problem is - it seems to ignore the Autoplay tag - resulting in waiting for a long time seeing the QT logo, and then starts when it's all downloaded.
Is that because it's an MP4 and not MOV?
Do I have the tag wrong?

Alternatively - is there any way to add a progress bar to show the download progress (aside from doing it through Flash)?

Thanks.

Windows XP Pro

Posted on Nov 4, 2008 1:56 AM

Reply
7 replies

Nov 5, 2008 3:22 AM in response to QuickTimeKirk

Thanks,

While it might be outdated - the "embed" tag worked on both IE and Firefox. I've tried this new code and for some reason it only works in IE, but not in Firefox. I don't know whether I should revert back to the "embed" tag or figure out what would make the new code universal to both browsers.

Regarding the file itself - I've closed in in a container of MOV in QTPro - and will soon upload it and check it. However, I've tried to re-export that MOV again with the "fast start" check marked - and it bounced the size up from 40 Mb to 267 Mb! I'm still trying different methods of compression - but not seeing good size/quality results. The original came out of Prism Video.

Thanks.

Nov 5, 2008 5:22 AM in response to hummus72

Great! it works now.
Seems like simply containing the MP4 in a MOV fixed the streaming issue.
However, regarding the code - I did revert back to EMBED since that's the only thing that worked with both browsers. Moreover, IE - even though it played the QT movie - only showed a small cropped square version of it (maybe 200x200) with the JS code (with and without adding parameters for size). Embed simply works - so I don't know why not to use it.

Thanks.

Nov 5, 2008 7:20 AM in response to hummus72

The "embed" tag will not trigger the QuickTime browser plug-in using Internet Explorer.
A "virgin" PC (one without QuickTime Player) will not get any instructions, will not be re-directed to the QuickTime download page and will not display your file.
Dimensions (height and width) are required as part of the newer javascript page code. Dimensions will only be scaled if the "aspect" values are changed (e.g. "scale" or "tofit").
Try the newer code and leave embed out of your page code.

This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

HTML Embed tag with Autoplay not working with MP4 file

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.