All kinds of web player code encyclopedia

Source: Internet
Author: User
Tags net prefetch shuffle
Web page RM files Play Online
<embed height=25 src www.xiakedao.com/biyun/ren/a.rmType=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" to listen to the sound immediately when the page is open height=25 width=50 has different values and the player panel is somewhat 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" when the page is opened, autostart= "TRUE" to listen to the sound immediately when the page is open height=25 50 has different values, 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.com/activex/ controls/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= "http://music.sdcatv.net/biyun/wlsd/down/yin/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 the <param name= "AutoStart" value= "0" > 0 is on standby for the open page, and the page opens for 1 o'clock direct playback </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= "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= "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= "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>

Play songs continuously
--------------------------------------------------------------------------------
<object classid= "Clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95" id= "MediaPlayer1" width= "286" height= ">"
<param name= "Audiostream" value= "-1" >
<param name= "AutoSize" value= "-1" >
<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= "5" >
<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= "16777215" >
<param name= "DisplayMode" value= "0" >
<param name= "displaysize" value= "0" >
<param name= "Enabled" value= "-1" >
<param name= "Enablecontextmenu" value= "-1" >
<param name= "Enablepositioncontrols" value= "-1" >
<param name= "Enablefullscreencontrols" value= "0" >
<param name= "Enabletracker" value= "-1" >
<param name= "Filename" value>
<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> Insert the address of the file (but this can only be a music file)
<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= "-1" >
<param name= "Showdisplay" value= "0" >
<param name= "Showgotobar" value= "0" >
<param name= "Showpositioncontrols" value= "-1" >
<param name= "ShowStatusBar" value= "0" >
<param name= "Showtracker" value= "-1" >
<param name= "Transparentatstart" value= "0" >
<param name= "videoborderwidth" value= "0" >
<param name= "Videobordercolor" value= "0" >
<param name= "Videoborder3d" value= "0" >
<param name= "Volume" value= " -600" >
<param name= "Windowlessvideo" value= "0" >
</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.