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 = " »
Width = "400" height = "326" id = "VideoPlayback">
<Param name = "movie"
Value = " »
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"/>

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

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 -»
Codebase = ""
Width = "320" height = "260">
<Param name = "src"
Value = "»
Diables. mov "/>
<Param name = "controller" value = "true"/>
<Param name = "autoplay" value = "false"/>
<! -- [If! IE]> -->
<Object type = "video/quicktime"
Data = "»
Diables. mov"
Width = "320" height = "260">
<Param name = "autoplay" value = "false"/>
<Param name = "controller" value = "true"/>
<! -- <! [Endif] -->

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: 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.