Media Player Code conforming to web standards

Source: Internet
Author: User

Since the Embed tag is the private property of Netscape, it has never been recognized by W3C. The use of the Embed tag for various media files is not standard. How can we change it? Elizabeth Castro's Bye Embed article provides good web-compliant code for various media players.
FLash files Copy codeThe Code is as follows: <object type = "application/x-shockwave-flash"
Data = "http://video.google.com/googleplayer.swf? »
8755581808731033658"
Width = "400" height = "326" id = "VideoPlayback">
<Param name = "movie"
Value = "http://video.google.com/googleplayer.swf? »
DocId = 8755581808731033658 "type =" codeph "text ="/codeph "/>
<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>

Windows Media Player file Copy codeThe Code is as follows: <object type = "video/x-ms-wmv"
Data = "http://www.sarahsnotecards.com/catalunyalive»
Fishstore. wmv"
Width = "320" height = "260">
<Param name = "src"
Value = "http://www.sarahsnotecards.com/catalunyalive»
Fishstore. wmv "/>
<Param name = "autostart" value = "true"/>
<Param name = "controller" value = "true"/>
</Object>

The above Code does not have a unique classid for Windows Media Player. The author tested IE5.5, IE6, IE7, Opera Win/Mac, Firefox Win/Mac, and Safari.

Quick time movies no embed tag
Copy codeThe Code is as follows: <object classid = "clsid: 02BF25D5-8C17-4B23-BC80 -»
D3488ABDDC6B"
Codebase = "http://www.apple.com/qtactivex/qtplugin.cab"
Width = "320" height = "260">
<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 = "320" height = "260">
<Param name = "autoplay" value = "false"/>
<Param name = "controller" value = "true"/>
</Object>
<! -- <! [Endif] -->
</Object>

Related Article

Beyond APAC's No.1 Cloud

19.6% IaaS Market Share in Asia Pacific - Gartner IT Service report, 2018

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.