Insert the player's code in a Web page

Source: Internet
Author: User
Tags object insert net prefetch shuffle valid
Insert | Web page

Insert the player in the page
Insert Windows Media PLAYER:ID:6BF52A52-394A-11D3-B153-00C04F79FAA6
Insert Real:
<object id= "Raocx" classid= "clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa\>

----------Example---------------

<object id= "MediaPlayer" height= "width=" classid= "Clsid:6bf52a52-394a-11d3-b153-00c04f79faa6" VIEWASTEXT >

The address of the playback file
<param name= "URL" value=http:// Song Address.asx>

Specifies the speed at which streaming files play, and a negative number indicates a reverse playback.
When the value is not 1 o'clock, the ASF and WMV files are muted when they are played
General values in-10 to 10
<param name= "Rate" value= "1" >

Integer action between-100 and 100: Specifies the balance of the left and right speakers
<param name= "balance" value= "0" >

Current playback location, units: seconds
<param name= "currentposition" value= "0" >

Specify the number of times a stream file plays
<param name= "Playcount" value= "1" >

Whether to play automatically
<param name= "AutoStart" value= "-1" >

<param name= "Currentmarker" value= "0" >

Specifies whether the URL path starts the browser open
<param name= "Invokeurls" value= "-1" >

Any number from 0 to 100, specifying the volume size
<param name= "Volume" value= "M" >

Specifies whether audio is muted
<param name= "Mute" value= "0" >

None,mini, or full, specifies how Windows Media Player control displays
<param name= "Uimode" value= "Mini" >

<param name= "Stretchtofit" value= "0" >

<param name= "Windowlessvideo" value= "0" >

Specify whether to make the player valid
<param name= "Enabled" value= "-1" >

Specify whether to make the right key menu valid
<param name= "Enablecontextmenu" value= "0" >

Specifies whether to use Full-screen mode to play streaming file contents
<param name= "fullscreen" value= "0" >
</object>

Web music player code--

rm files Play Online
<embed height=25 src=www.xiakedao.com/biyun/ren/a.rm type=audio/x-pn-realaudio-plugin width=50 autostart= "false" controls= "PlayButton" >
Autostart= "false" is in the waiting state when the page is opened, autostart= "true" when the page is opened Listen to the sound right now. height=25 Width=50 has different values and the player panel is a little different
MIDI, AU, AVI file online playback
<embed src= http://www.shunde.net.cn/~biyun/wlsd/wy/yinyue/H/1.mid; width= "height=" autostart=true> autostart= "False" is in the waiting state when the page is opened, autostart= "true" to the sound immediately when the page is opened Height=25 width=50 has different values and the player panel is somewhat different
ASF File Online Playback
<meta http-equiv= "Content-type" content= "text/html; charset=gb2312 ">
<title></title>
<body topmargin= "0" leftmargin= "0" >
<object classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 codebase= http://activex.microsoft.......ols/mplayer/en/nsmp2inf.cab# version=7.0 height=53 id=nsplay0 name=nsplay type=application/x-oleobject width=87 viewastext standby= "Loading Microsoft Windows Media Player Components ... "border=" 0 "><param name=" Audiostream "value="-1 ">
<param name= "AutoSize" value= "0" >
<param name= "AutoStart" value= "1" >
<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" >
<param name= "BaseURL" value>
<param name= "Bufferingtime" value= "ten" >
<param name= "Captioningid" value>
<param name= "Clicktoplay" value= "-1" >
<param name= "CursorType" value= "0" >
<param name= "currentposition" value= "-1" >
<param name= "Currentmarker" value= "0" >
<param name= "Defaultframe" value>
<param name= "Displaybackcolor" value= "0" >
<param name= "Displayforecolor" value= "65280" >
<param name= "DisplayMode" value= "0" >
<param name= "Displaysize" value= "1" >
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<param name= "Enablepositioncontrols" value= "-1" >
<param name= "Enablefullscreencontrols" value= "-1" >
<param name= "Enabletracker" value= "-1" >
<param name= "Filename" value= "' target=_blank>http://music.sdcatv.net/b......n/gequ/asf/5.asf";>
<param name= "Invokeurls" value= "-1" >
<param name= "Language" value= "-1" >
<param name= "Mute" value= "0" >
<param name= "Playcount" value= "1" >
<param name= "PreviewMode" value= "0" >
<param name= "Rate" value= "1" >
<param name= "Samilang" value>
<param name= "Samistyle" value>
<param name= "Samifilename" value>
<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" >
<param name= "Showcontrols" value= "-1" >
<param name= "Showaudiocontrols" value= "0" >
<param name= "Showdisplay" value= "0" >
<param name= "Showgotobar" value= "0" >
<param name= "Showpositioncontrols" value= "-1" >
<param name= "ShowStatusBar" value= "-1" >
<param name= "Showtracker" value= "-1" >
<param name= "Transparentatstart" value= "-1" >
<param name= "videoborderwidth" value= "0" >
<param name= "Videobordercolor" value= "0" >
<param name= "Videoborder3d" value= "-1" >
<param name= "Volume" value= "0" >
<param name= "Windowlessvideo" value= "0" >
</object>
where <param name= "AutoStart" value= "0" > 0 are on standby for open pages, Open the page for 1 o'clock to play directly </body>

Streaming Listening mp3 method:
http://*.mp3,http://*.mp3,http://... 琱 Ttp://*.mp3,
Save the above file as *.m3u, you can achieve online playback *.mp3 (support continuous playback)

MPEG images are played online:
Wait, let it download "HTTP://MUSIC.CNVNET.COM/VIDEO/0321.MPEG;
"start=" FileOpen ">

RM Video online Playback code:
<object id= "vid" classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width=114 height=100>
<param name= "_extentx" value= "3016" >
<param name= "_extenty" value= "2646" >
<param name= "AUTOSTART" value= "-1" >
<param name= "SHUFFLE" value= "0" >
<param name= "PREFETCH" value= "0" >
<param name= "Nolabels" value= "-1" >
<param name= "SRC" value= "' Target=_blank>http://music.cnvnet.com/mtv/20010618/002.ram";>
<param name= "CONTROLS" value= "Imagewindow" >
<param name= "CONSOLE" value= "Clip1" >
<param name= "LOOP" value= "0" >
<param name= "Numloop" value= "0" >
<param name= "CENTER" value= "0" >
<param name= "Maintainaspect" value= "0" >
<param name= "BackgroundColor" value= "#000000" >
</object>

Add a few controllers
<object id= "vid" classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width=427 height=300>
<param name= "_extentx" value= "11298" >
<param name= "_extenty" value= "7938" >
<param name= "AUTOSTART" value= "-1" >
<param name= "SHUFFLE" value= "0" >
<param name= "PREFETCH" value= "0" >
<param name= "Nolabels" value= "-1" >
<param name= "SRC" value= "' Target=_blank>http://music.cnvnet.com/mtv/20010618/001.ram";>
<param name= "CONTROLS" value= "Imagewindow" >
<param name= "CONSOLE" value= "Clip1" >
<param name= "LOOP" value= "0" >
<param name= "Numloop" value= "0" >
<param name= "CENTER" value= "0" >
<param name= "Maintainaspect" value= "0" >
<param name= "BackgroundColor" value= "#000000" >
</object> <object id= "Vid2" classid= "CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width=427 height=30>
<param name= "_extentx" value= "11298" >
<param name= "_extenty" value= "794" >
<param name= "AUTOSTART" value= "-1" >
<param name= "SHUFFLE" value= "0" >
<param name= "PREFETCH" value= "0" >
<param name= "Nolabels" value= "-1" >
<param name= "SRC" value= "' Target=_blank>http://music.cnvnet.com/mtv/20010618/001.ram";>
<param name= "CONTROLS" value= "ControlPanel" >
<param name= "CONSOLE" value= "Clip1" >
<param name= "LOOP" value= "0" >
<param name= "Numloop" value= "0" >
<param name= "CENTER" value= "0" >
<param name= "Maintainaspect" value= "0" >
<param name= "BackgroundColor" value= "#000000" >
</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.