Web Standard Media Player code

Source: Internet
Author: User
Tags object
Player | Media |web standard

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>

Source: Blue Ideal



Related Article

Alibaba Cloud 10 Year Anniversary

With You, We are Shaping a Digital World, 2009-2019

Learn more >

Apsara Conference 2019

The Rise of Data Intelligence, September 25th - 27th, Hangzhou, China

Learn more >

Alibaba Cloud Free Trial

Learn and experience the power of Alibaba Cloud with a free trial worth $300-1200 USD

Learn more >

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.