网页内插入播放器

本文详细介绍了一种基于Microsoft ActiveX的音视频播放器配置方案,并提供了针对不同格式(如asx和rm)的具体参数设置示例。通过调整各项参数,用户可以实现包括全屏播放、音量调节、状态栏显示等功能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

<body>   
  
<OBJECT   classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95   codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,05,0809   height=256   id="NSOPlay"   type=application/x-oleobject   width=245   standby="Connecting   with   Live   Event.   Please   wait   patiently...">   
  
<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="-1">   
  
<PARAM   NAME="Balance"   VALUE="-1">   
  
<PARAM   NAME="BaseURL"   VALUE="">   
  
<PARAM   NAME="BufferingTime"   VALUE="5">   
  
<PARAM   NAME="CaptioningID"   VALUE="-1">   
  
<PARAM   NAME="ClickToPlay"   VALUE="-1">   
  
<PARAM   NAME="CursorType"   VALUE="-1">   
  
<PARAM   NAME="CurrentPosition"   VALUE="-1">   
  
<PARAM   NAME="CurrentMarker"   VALUE="-1">   
  
<PARAM   NAME="DefaultFrame"   VALUE="content">   
  
<PARAM   NAME="DisplayBackColor"   VALUE="0">   
  
<PARAM   NAME="DisplayForeColor"   VALUE="16777215">   
  
<PARAM   NAME="DisplayMode"   VALUE="-1">   
  
<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://lucky.myrice.com/play.asx">   
  
<PARAM   NAME="InvokeURLs"   VALUE="-1">   
  
<PARAM   NAME="Language"   VALUE="-1">   
  
<PARAM   NAME="Mute"   VALUE="0">   
  
<PARAM   NAME="fullScreen"   VALUE="true">   
  
<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="-1">   
  
<PARAM   NAME="SendMouseMoveEvents"   VALUE="-1">   
  
<PARAM   NAME="SendPlayStateChangeEvents"   VALUE="-1">   
  
<PARAM   NAME="ShowCaptioning"   VALUE="0">   
  
<PARAM   NAME="ShowControls"   VALUE="-1">   
  
<PARAM   NAME="ShowAudioControls"   VALUE="-1">   
  
<PARAM   NAME="ShowDisplay"   VALUE="-1">   
  
<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="0">   
  
<PARAM   NAME="Volume"   VALUE="-450">   
  
<PARAM   NAME="WindowlessVideo"   VALUE="0">   
  
<EMBED   type="video/x-ms-asf-plugin"   pluginspage="http://www.microsoft.com/goto/mscom/windows/mediaplayer/default.asp"   filename="http://colorweb.go.163.com/play.asx"   
    name
="NSOPlay"   
    width
="286"   
    height
="172"   
    DefaultFrame
="content"   
    AnimationAtStart
="-1"   
    AutoRewind
="-1"   
    AutoStart
="-1"   
    Autosize
="-1"   
    ControlType
="-1"   
    DisplaySize
="6"   
    ShowAudioControls
="-1"   
    ShowControls
="-1"   
    ShowDisplay
="-1"   
    ShowGotoBar
="-1"   
    ShowPositionControls
="-1"   
    ShowStatusBar
="-1"   
    ShowTracker
="-1"   
    TransparentAtStart
="-1">   
  
</EMBED>   
  
</OBJECT>   
  
<br>   
  
<input   onclick="document.all.NSOPlay.pause()"   type=button   value="停止">   
  
<input   onclick="document.all.NSOPlay.AutoSize='-1';document.all.NSOPlay.fullScreen='true'"   type=button   value="fillscreen">   
  
<input   onclick="document.all.NSOPlay.Play()"   type=button   value="播放">   
  
<input   onclick="document.all.NSOPlay.ShowStatusBar='0'"   type=button   value="没有状态栏">   
  
<input   onclick="document.all.NSOPlay.Volume='-1000'"   type=button   value="减小声音">   
  
<input   onclick="document.all.NSOPlay.Volume='0'"   type=button   value="增大声音">   
  
<input   onclick="document.all.NSOPlay.Stop();document.all.NSOPlay.CurrentPosition=0;document.all.NSOPlay.play()"   type=button   value="回放">   
  
<input   onclick="document.all.NSOPlay.Previous()"   type=button   value="上一首">   
  
<input   onclick="document.all.NSOPlay.Next()"   type=button   value="下一首">   
  
<input   onclick="document.all.NSOPlay.FastForward()"   type=button   value="快进"><br>   
  最后的三个属性对多首曲目才有效果,有的属性只有相应的属性设置了才会起作用。   
  
</body>   

 rm格式:

 

<OBJECT   id=video1   height=242   width=392     
                    
classid=clsid:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA     
                    
VIEWASTEXT>   
                          
<PARAM   NAME="_ExtentX"   VALUE="5292">   
                          
<PARAM   NAME="_ExtentY"   VALUE="3810">   
                          
<PARAM   NAME="AUTOSTART"   VALUE="1">   
                          
<PARAM   NAME="SHUFFLE"   VALUE="0">   
                          
<PARAM   NAME="PREFETCH"   VALUE="0">   
                          
<PARAM   NAME="NOLABELS"   VALUE="0">   
                          
<PARAM   NAME="CONTROLS"   VALUE="ImageWindow">   
                          
<PARAM   NAME="CONSOLE"   VALUE="RAPLAYER">   
                          
<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>   
                      
<BR><OBJECT   id=video1   style="LEFT:   0px;   TOP:   0px"   height=62   width=392   classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA     VIEWASTEXT>   
                          
<PARAM   NAME="_ExtentX"   VALUE="5556">   
                          
<PARAM   NAME="_ExtentY"   VALUE="1588">   
                          
<PARAM   NAME="AUTOSTART"   VALUE="1">   
                          
<PARAM   NAME="SHUFFLE"   VALUE="0">   
                          
<PARAM   NAME="PREFETCH"   VALUE="0">   
                          
<PARAM   NAME="NOLABELS"   VALUE="0">   
                          
<PARAM   NAME="SRC"   VALUE="这里写你的播放文件地址">   
                          
<PARAM   NAME="CONSOLE"   VALUE="RAPLAYER">   
                          
<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">   
                          
<PARAM   NAME="controls"   VALUE="StatusBar,ControlPanel">   
                          
<embed   src="这里写你的播放文件地址"   type="audio/x-pn-realaudio-plugin"   console="Clip1"   controls="ControlPanel,StatusBar"   height="62"   width="392"   autostart="true">   </embed>     
                      
</OBJECT>
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值