Web-compliant Media player code

Source: Internet
Author: User
Web|web Standard | media

Bye, embed. Web-standard code for some media players

As the embed label is Netscape's private property, it has not been recognized by the consortium, the use of embed labels for various media documents is non-standard, how to change? Elizabeth Castro's Bye Bye Embed for a variety of media players to give a good code that conforms to the Web standard.

Online media play--google video and YouTube

<object type= "Application/x-shockwave-flash"
Data= "http://video.google.com/googleplayer.swf?" »
8755581808731033658 "
Width= "height=" "326" id= "Videoplayback" >
<param name= "movie"
Value= "http://video.google.com/googleplayer.swf?" »
docid=8755581808731033658 "/>
<param name= "allowscriptacess" value= "Samedomain"/>
<param name= "Quality" value= "best"/>
<param name= "bgcolor" value= "#FFFFFF"/>
<param name= "scale" value= "Noscale"/>
<param name= "salign" value= "TL"/>
<param name= "Flashvars" value= "playermode=embedded"/>
</object>

is actually a flash file call

Windows Media Player File

<object type= "Video/x-ms-wmv"
Data= "http://www.sarahsnotecards.com/catalunyalive/»
Fishstore.wmv "
Width= "height=" >
<param name= "src"
Value= "http://www.sarahsnotecards.com/catalunyalive/»
Fishstore.wmv "/>
<param name= "Autostart" value= "true"/>
<param name= "Controller" value= "true"/>
</object>

The code above does not have Windows Media Player-specific classid, and is tested by the author in IE5.5, IE6, IE7, Opera Win/mac, Firefox Win/mac, Safari.

QuickTime Movies No Embed tags

<object classid= "clsid:02bf25d5-8c17-4b23-bc80-»
D3488ABDDC6B "
Codebase= "Http://www.apple.com/qtactivex/qtplugin.cab"
Width= "height=" >
<param name= "src"
Value= "http://www.sarahsnotecards.com/catalunyalive/»
Diables.mov "/>
<param name= "Controller" value= "true"/>
<param name= "AutoPlay" value= "false"/>
<!--[if! Ie]>-->
<object type= "Video/quicktime"
Data= "http://www.sarahsnotecards.com/catalunyalive/»
Diables.mov "
Width= "height=" >
<param name= "AutoPlay" value= "false"/>
<param name= "Controller" value= "true"/>
</object>
<!--<! [endif]-->
</object>



Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.