How to embed media Player playback streaming media files in a Web page

Source: Internet
Author: User
Tags object version window
Media Player two version of the embedded code of the player, there are related instructions (default 0 is no,-1 or 1 is)
However, the code is not comprehensive enough to determine the browser version of the parameters
Program code:

<object classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id= "MediaPlayer1" width= "286" height= ">"
<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" >
<!--left-right channel balance, leftmost 9640, 9640-->
<param name= "BaseURL" value>
<param name= "Bufferingtime" value= ">"
<!--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 first unit is a second, for example, 10 indicates that the value must be-1.0 or greater than or equal to 0--> from 10th seconds.
<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 any place to play-->
<param name= "Filename" value= "http://01.wma" valuetype= "ref" >
<!--playback file address-->
<param name= "Invokeurls" value= "-1" >
<param name= "Language" value= "-1" >
<param name= "Mute" value= "0" >
<!--Mute-->
<param name= "Playcount" value= "ten" >
<!--repeat playback times, 0 for 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 captions are displayed for a piece of black, there will be a large chunk of black below, generally do not show-->
<param name= "Showcontrols" value= "-1" >
<!--whether to display control, such as playing, stopping, pausing-->
<param name= "Showaudiocontrols" value= "-1" >
<!--whether to display volume control-->
<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, 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 four-week black box size and does not change the video size-->
<param name= "Videobordercolor" value= "0" >
<!--display the color of the black box, RGB values, such as FFFF00 yellow-->
<param name= "Videoborder3d" value= "0" >
<param name= "Volume" value= "0" >
<!--volume size, negative value is the current volume of the reduction, the values will automatically take absolute, the maximum is 0, the minimum is -9640-->
<param name= "Windowlessvideo" value= "0" >
<!--if 0 allows full-screen, you can view--> in a window only
</object>

The above player is the old-fashioned kind, the new player is after MediaPlayer9.0, that is, only installed 9.0 or more than 9.0 of the player to normal use.

Here's a new player code that's a lot simpler than it used to be:

Program code:

<object id= "Player" height= "width=" classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" >
<param name= "AutoStart" value= "-1" >
<!--whether to play--> automatically
<param name= "Balance" value= "0" >
<!--adjust the left and right channel balance,--> with the old player code above
<param name= "Enabled" value= "-1" >
<!--player can be artificially controlled-->
<param name= "Enablecontextmenu" value= "-1" >
<!--whether context menus are enabled-->
<param name= "url" value= "http://1.wma" >
<!--playback file address-->
<param name= "Playcount" value= "1" >
<!--playback times control, for integer-->
<param name= "Rate" value= "1" >
<!--playback rate control, 1 is normal, allow decimal,1.0-2.0-->
<param name= "currentposition" value= "0" >
<!--control settings: Current position-->
<param name= "Currentmarker" value= "0" >
<!--control settings: Current Tag-->
<param name= "Defaultframe" value= "" >
<!--display default frame-->
<param name= "Invokeurls" value= "0" >
<!--script command settings: whether to invoke url-->
<param name= "BaseURL" value= "" >
<!--script command settings: called url-->
<param name= "Stretchtofit" value= "0" >
<!--whether to extend--> proportionally
<param name= "Volume" value= "M" >
<!--default sound size 0%-100%,50 is 50%-->
<param name= "Mute" value= "0" >
<!--Mute-->
<param name= "Uimode" value= "Mini" >
<!--player display mode: full display all; Mini simplifies; None does not display playback control, only the video window is displayed; Invisible all do not show-->
<param name= "Windowlessvideo" value= "0" >
<!--if 0 allows full-screen, you can view--> in a window only
<param name= "fullscreen" value= "0" >
<!--start playing automatically full-screen-->
<param name= "Enableerrordialogs" value= "-1" >
<!--whether to enable error notification reporting-->
<param name= "Samistyle" value>
<!--Sami style-->
<param name= "Samilang" value>
<!--Sami language-->
<param name= "Samifilename" value>
<!--subtitles id-->
</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.