MediaPlayer online player code compatible with IE and FF

Source: Internet
Author: User

MediaPlayer online player code compatible with IE and FF

Online player inserts MediaPlayer compatible with IE and FF code debugging in Web pages
Internet Explorer and Netscape support <embed> elements, but they are not standard HTML or XHTML elements. The World Wide Web Consortium (WWW) recommends the use of <object> elements to replace it.
So all two tags have to be written, and attribute values need to correspond.
–>
<object id= "MediaPlayer" height= "classid=" Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6 "
Type= "Application/x-oleobject" >
<param name= "Showpositioncontrols" value= "0"/>
<param name= "AutoStart" value= "0"/>
<param name= "Enablecontextmenu" value= "0" >
<param name= "URL" value= "http://www.piaoxu8.com/zone/music4.wma"/>
<embed id= "MediaPlayer1" height= "src=" http://www.piaoxu8.com/zone/music4.wma "
Type= "Application/x-mplayer2" autostart= "0" enablecontextmenu= "0" ></embed>
</object>
Description of the player related parameters on the Web page
(default 0 is no,-1 or 1 is yes)
<object classid= "clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95″id=" mediaplayer1″width= "286″height=" 225″>
<param name= "Audiostream" value= " -1″>
<param name= "AutoSize" value= " -1″>
<!– whether the playback size is automatically adjusted –>
<param name= "AutoStart" value= " -1″>
<!– whether to play –> automatically
<param name= "Animationatstart" value= " -1″>
<param name= "Allowscan" value= " -1″>
<param name= "allowchangedisplaysize" value= " -1″>
<param name= "Autorewind" value= "0″>
<param name= "Balance" value= "0″>
<!– right and left channel balance, leftmost-9640, 9640–>
<param name= "BaseURL" value>
<param name= "Bufferingtime" value= "15″>
<!– Buffer Time –>
<param name= "Captioningid" value>
<param name= "Clicktoplay" value= " -1″>
<param name= "CursorType" value= "0″>
<param name= "currentposition" value= "0″>
<!– Current Playback Progress-1 means unchanged, 0 indicates the beginning unit is a second, for example, 10 indicates that the value must be-1.0 or greater than or equal to 0–> from the 10th second.
<param name= "Currentmarker" value= "0″>
<param name= "Defaultframe" value>
<param name= "Displaybackcolor" value= "0″>
<param name= "Displayforecolor" value= "16777215″>
<param name= "DisplayMode" value= "0″>
<param name= "displaysize" value= "0″>
<!– video 1-50%, 0-100%, 2-200%,3-full screen other values for 0 processing, decimal is rounded then followed by the processing –>
<param name= "Enabled" value= " -1″>
<param name= "Enablecontextmenu" value= " -1″>
<!-whether you want to use the right mouse pop-up menu to control –>
<param name= "Enablepositioncontrols" value= " -1″>
<param name= "Enablefullscreencontrols" value= " -1″>
<param name= "Enabletracker" value= " -1″>
<!– whether to allow pulling the playback progress bar to play anywhere –>
<param name= "Filename" value= "http://01.wma" valuetype= "ref" >
<!– playback of the file address –>
<param name= "Invokeurls" value= " -1″>
<param name= "Language" value= " -1″>
<param name= "Mute" value= "0″>
<!– is mute –>
<param name= "Playcount" value= "10″>
<!– repeat playback times, 0 to always repeat –>
<param name= "PreviewMode" value= " -1″>
<param name= "Rate" value= "1″>
<!– playback Rate Control, 1 is normal, allow decimal –>
<param name= "Samistyle" value>
<!–sami style –>
<param name= "Samilang" value>
<!–sami language –>
<param name= "Samifilename" value>
<!– subtitles id–>
<param name= "SelectionStart" value= " -1″>
<param name= "Selectionend" value= " -1″>
<param name= "sendopenstatechangeevents" value= " -1″>
<param name= "sendwarningevents" value= " -1″>
<param name= "senderrorevents" value= " -1″>
<param name= "sendkeyboardevents" value= "0″>
<param name= "sendmouseclickevents" value= "0″>
<param name= "sendmousemoveevents" value= "0″>
<param name= "sendplaystatechangeevents" value= " -1″>
<param name= "showcaptioning" value= "0″>
<!– whether to display subtitles, a black, there will be a large block of black, generally do not show –>
<param name= "Showcontrols" value= " -1″>
<!– whether to display control, such as playing, stopping, pausing –>
<param name= "Showaudiocontrols" value= " -1″>
<!– whether the volume control is displayed –>
<param name= "Showdisplay" value= "0″>
<!– Display program information, such as copyright –>
<param name= "Showgotobar" value= "0″>
<!– whether context menus are enabled –>
<param name= "Showpositioncontrols" value= " -1″>
<!– whether to show forward and list, if the display is generally also gray uncontrollable –>
<param name= "ShowStatusBar" value= " -1″>
<!– the current playback information, showing whether it is playing, and the total playback time and the time currently played –>
<param name= "Showtracker" value= " -1″>
<!– whether the current playback track bar is displayed, that is, the current playback progress bar –>
<param name= "Transparentatstart" value= " -1″>
<param name= "Videoborderwidth" value= "0″>
<!– the width of the display section, if less than the width of the video, the minimum is video width, or to the specified value, and automatically increase the height. This change only changes the size of the four-week black box and does not change the video size –>
<param name= "Videobordercolor" value= "0″>
<!– Displays the color of the black box, which is an RGB value, such as ffff00 for yellow –>
<param name= "Videoborder3d" value= "0″>
<param name= "Volume" value= "0″>
<!– volume size, negative indicates that the current volume is reduced, the value will automatically take absolute values, the maximum is 0, the minimum is -9640–>
<param name= "Windowlessvideo" value= "0″>
<!– if it is 0 to allow full screen, you can only view the –> in the window
</object>

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.