...

View Full Version : How to display a ".mov" video?



keys88
08-08-2010, 12:14 AM
I would like to know the correct way to display a “.mov” video in an html 4.01 Strict page.

In fact my page displays the video perfectly in Mac Safari and Firefox, but the Validator flunks it on multiple counts, and I want all my code to validate.

Here’s the code. I’ve found it in several top instructional sites and copied straight into my page:



<div id="photo-box">
<embed src="my-movie.mov" width="640" height="496" autostart="false" >
<object classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="496" width="640">
<param name="src" value="my-movie.mov">
<param name="autoplay" value="false">
<param name="type" value="video/quicktime" height="496" width="640">
</embed>
</div>


The Validator says:

-- element “EMBED” undefined
-- these are not attributes for the EMBED element: “SRC” “WIDTH” “HEIGHT” “AUTOSTART”

which makes no sense to me.

(Comment: My Mac Safari and Firefox both display the page when I use only that first <embed> line, omitting the <object> and <param> lines, but I've read that those lines are needed for PC. In my Mac, including those lines makes no difference in how the page displays.)

The Validator suggests using a Transitional doctype, but with 4.01 Transitional it returns all the same errors.

Can someone tell me what's needed to do to display a “.mov” file in a 4.01 Strict page?

Thank you.

.

jdswebservice
08-08-2010, 02:41 AM
As you can see here in this list, the embed tag no longer is in use.

http://www.w3schools.com/tags/default.asp

I would suggest just using the object and param tags. If you need more information visit these sites.

http://www.w3schools.com/tags/tag_param.asp
http://www.w3schools.com/tags/tag_object.asp

Thanks,
J-

keys88
08-08-2010, 04:41 AM
Thanks. Very helpful.

_Aerospace_Eng_
08-08-2010, 04:47 AM
This actually might help you more as its geared towards a quick time movie.

http://realdev1.realise.com/rossa/rendertest/quicktime.html

Keep in mind that not everyone has quicktime installed and that I recommend that you convert to .flv or another format that can be played with flash and then find a flash video player. The www.longtailvideo.com one has a decent player that I've used for years. Its not free for commercial sites though.

jdswebservice
08-08-2010, 11:26 PM
This actually might help you more as its geared towards a quick time movie.

http://realdev1.realise.com/rossa/rendertest/quicktime.html

Keep in mind that not everyone has quicktime installed and that I recommend that you convert to .flv or another format that can be played with flash and then find a flash video player. The www.longtailvideo.com one has a decent player that I've used for years. Its not free for commercial sites though.

I believe that you're right in saying that you should convert to .flv format as this is the generic now a days for simple quicktime movie stuff... If you need a converter i would suggest

http://www.any-video-converter.com/products/for_video_free/

I hope this helps you on your endeavors.

J-

keys88
08-08-2010, 11:55 PM
All these responses are really helpful, and much appreciated.

Thank you.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum