Insert the player code into the webpage

Source: Internet
Author: User

Insert a player into 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 ---------------

& Lt; object id = "MediaPlayer" height = "40" width = "150"
Classid = "CLSID: 6BF52A52-394A-11d3-B153-00C04F79FAA6" VIEWASTEXT>

// Playback file address
<Param name = "URL" value = http: // song address. asx>

// Specify the stream file playback speed. A negative value indicates reverse playback.
// When this value is not 1, the ASF and WMV files are muted during playback.
// The value ranges from-10 to 10.
<Param name = "rate" value = "1">

// Integer between-100 and 100: used to balance the left and right speakers
<Param name = "balance" value = "0">

// The current playback position, in seconds
<Param name = "currentPosition" value = "0">

// Specify the number of times stream files are played
<Param name = "playCount" value = "1">

// Whether to play the video automatically
<Param name = "autoStart" value = "-1">

<Param name = "currentMarker" value = "0">

// Specify whether to enable the browser to open the URL path
<Param name = "invokeURLs" value = "-1">

// Any value ranging from 0 to 100. Specify the volume.
<Param name = "volume" value = "50">

// Specifies whether the audio is muted.
<Param name = "mute" value = "0">

// None, mini, or full, specifies how the Windows Media Player controls display
<Param name = "uiMode" value = "mini">

<Param name = "stretchToFit" value = "0">

<Param name = "windowlessVideo" value = "0">

// Specify whether the player is valid
<Param name = "enabled" value = "-1">

// Specify whether the right-click menu is valid
<Param name = "enableContextMenu" value = "0">

// Specify whether the stream file content is played in full screen mode
<Param name = "fullScreen" value = "0">
</Object>

Webpage music player code --
Online rm file playback
<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, while autostart = "true" is in the waiting state when the page is opened
Listen to the sound right away. The height = 25 width = 50 has different values and the player panel is somewhat different.
Online playback of midi, au, and avi Files
<Embed src = http://www.shunde.net.cn /~ Biyun/wlsd/wy/yinyue/H/1.mid;
Width = "47" height = "24" AUTOSTART = TRUE>
Autostart = "false" when the page is opened, it is in the waiting state. autostart = "true" when the page is opened, it immediately listens to the sound
Height = 25 width = 50 has different values, and the player panel is somewhat different.
Online playback of asf files
<Html>
<Head>
<Meta http-equiv = "Content-Type" content = "text/html; charset = gb2312">
<Title> </title>
</Head>
<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 = "10">
<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>
<Param name = "AutoStart" value = "0"> 0 indicates that the page is on standby,
When the value is 1, the page is played directly. </body>
</Html>

Stream listening mp3 method:
Http: // *. mp3, http: // *. mp3, http: //... ttp: // *. mp3,
Save the above file as *. m3u to enable online playback *. mp3 (supporting continuous playback)

Online playback of mpeg images:
And so on. Let it download <img border = "0" dynsrc =
"Http://music.cnvnet.com/video/0321.mpeg;
"Start =" fileopen ">

Rm image 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 several 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>

1. WMP video playback:
<Embed src = "http ://****/****. wmv "autostart =" true "loop =" true "width =" 200 "height =" 150 ">
Just copy the http: // *****/*****. wmv address to the movie you want to watch.

2. rm format with a photo image:
<OBJECT classid = 'clsid: CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA 'height = 288 id = video1 width = 305 VIEWASTEXT>
<Param name = '_ ExtentX' value = '000000'>
<Param name = '_ ExtentY' value = '000000'>
<Param name = 'autostart' value = '-1'>
<Param name = 'shuffle' value = '0'>
<Param name = 'prefetch' value = '0'>
<Param name = 'nolabels' value = '0'>
<Param name = 'src' value = 'HTTP: // http: // ********/******. ram'>
<Param name = 'controls' value = 'imagewindow, StatusBar, ControlPanel '>
<Param name = 'console' value = 'raplay'>
<Param name = 'login' value = '0'>
<Param name = 'numloop 'value = '0'>
<Param name = 'center' value = '0'>
<Param name = 'maintainaspect 'value = '0'>
<Param name = 'backgroundcolor' value = '#000000'>
</OBJECT>

3. Non-photo rm format: for example, Xiangxiang, Song...
<Object ID = 'video2' WIDTH = '000000' HEIGHT = '62' CLASSID = 'clsid: CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA '>
<Param name = '_ ExtentX' value = '000000'>
<Param name = '_ ExtentY' value = '000000'>
<Param name = 'autostart' value = '-1'>
<Param name = 'shuffle' value = '0'>
<Param name = 'prefetch' value = '0'>
<Param name = 'nolabels' value = '0'>
<Param name = 'src' value = 'HTTP: // http: // ********/******. rm '>
<Param name = 'controls' value = 'statusbar, controlpanel '>
<Param name = 'console' value = 'clip1'>
<Param name = 'login' value = '0'>
<Param name = 'numloop 'value = '0'>
<Param name = 'center' value = '0'>
<Param name = 'maintainaspect 'value = '0'>
<Param name = 'backgroundcolor' value = '#000000'>
</Object>

4. The most simple media player .. The user does not have a portrait, but the version is yours!
<Embed src = 'mms ://*******/*****. wmv 'width = 200 height = 200 autostart = true loop = true> </embed>

5. media players with images can use online plug-ins for automatic uploads.
<Object id = nstv classid = 'clsid: 6BF52A52-394A-11d3-B153-00C04F79FAA6 'width = 280 height = 265 codebase = http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type = application/x-oleobject>
<Param name = 'url' value = 'HTTP: // ********/******. wmv '>
<Param name = 'uimode' value = 'full'> <param name = 'autostart' value = 'true'>
<Param name = 'enabled' value = 'true'>
<Param name = 'enablescontextmenu 'value = 'false'>
<Param name = 'windowlessvideo' value = 'true'>
</Object>

6. A media player with no image... Same as above. (Play wma and mp3)
<Object id = nstv classid = 'clsid: 6BF52A52-394A-11d3-B153-00C04F79FAA6 'width = 280 height = 60 codebase = http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701standby=Loading Microsoft? Windows Media? Player components... type = application/x-oleobject>
<Param name = 'url' value = 'HTTP: // ********/******. wmv '>
<Param name = 'uimode' value = 'full'> <param name = 'autostart' value = 'true'>
<Param name = 'enabled' value = 'true'>
<Param name = 'enablescontextmenu 'value = 'false'>
</Object>

7. It is only the player of the plugin plug-in for different media on the interface .. This is not recommended. You can check it!
<Embed src = 'HTTP ://*******/*****. ram 'Type = 'audio/x-pn-realaudio-plugin 'console = 'clip1' controls = 'controlpanel, statusBar 'height = '60' width = '000000' autostart = 'true'> </embed>

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.