网页中利用ActiveX组件插入媒体播放器?在线等待!!!

flybird079 2002-07-24 09:59:16
请问各位大虾,如何利用ActiveX组件在网页中插入media player之类!!!
急,在线等待!!!
...全文
92 6 打赏 收藏 举报
写回复
6 条回复
切换为时间正序
当前发帖距今超过3年,不再开放新的回复
发表回复
flybird079 2002-07-24
谢谢大家,但我想知道到大致的原理,哪位大虾可以指点迷津啊!
  • 打赏
  • 举报
回复
meizz 2002-07-24
1.window.media.player

<object classid="clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95" id="MediaPlayer1" width="286" height="225">
<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>
<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="-320">
<param name="WindowlessVideo" value="0">
</object>

2.realplay:

<OBJECT classid=clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA class=OBJECT id=RAOCX width=500 height=350>
<PARAM NAME=SRC VALUE=具体rm文件地址>
<PARAM NAME=CONSOLE VALUE=Clip1>
<PARAM NAME=CONTROLS VALUE=imagewindow>
<PARAM NAME=AUTOSTART VALUE=true></OBJECT><br>
<OBJECT classid=CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA height=32 id=video2 width=500>
<PARAM NAME=SRC VALUE=具体rm文件地址>
<PARAM NAME=AUTOSTART VALUE=-1>
<PARAM NAME=CONTROLS VALUE=controlpanel>
<PARAM NAME=CONSOLE VALUE=Clip1></OBJECT>
  • 打赏
  • 举报
回复
freezwy 2002-07-24
强烈建议:
你去www.zzip.com.cn看看,这个比较成熟,把里面的代码研究一下就知道了
  • 打赏
  • 举报
回复
freezwy 2002-07-24
强烈建议:
你去www.zzip.com.cn看看,这个比较成熟,把里面的代码研究一下就知道了
  • 打赏
  • 举报
回复
lovingkiss 2002-07-24
<object classid=clsid:cfcdaa03-8be4-11cf-b84b-0020afbbccfa height=244 id=RP2 style="left: 0px; top: 0px; " width=392>
<param name="_ExtentX" value="10372">
<param name="_ExtentY" value="6456">
<param name="AUTOSTART" value="-1">
<param name="SRC" value="rtsp://vmovie/喜剧片/绿芥刑警/绿芥刑警.RM">
<param name="SHUFFLE" value="0">
<param name="PREFETCH" value="0">
<param name="NOLABELS" value="0">
<param name="CONTROLS" value="IMAGEWINDOW">
<param name="CONSOLE" value="Clip528211525">
<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">
<embed height="244" width="392" _extentx="10160" _extenty="7620" autostart="1" src="rtsp://rvod.com/movie/喜剧片/绿芥刑警/绿芥刑警.RM" shuffle="0" prefetch="0" nolabels="0" nologo="-1" controls="IMAGEWINDOW" console="Clip528211525" loop="0" numloop="0" center="0" maintainaspect="0" backgroundcolor="#000000">
</embed></object>

自定义事件
<SCRIPT id=clientEventHandlersJS language=javascript>
<!--
function ImagePlay_onclick() {
RP2.DoPlay();
}

function ImagePlay_onmouseover() {
ImagePlay.src = "Images/kc-01.gif";
}

function ImagePlay_onmousedown() {
ImagePlay.src = "Images/kc-01.gif";
}

function ImagePlay_onmouseup() {
ImagePlay.src = "Images/kc-02.gif";
}
function ImagePlay_onmouseout() {
ImagePlay.src = "Images/kc-02.gif";
}

function ImageStop_onclick() {
RP2.DoStop();
}

function ImageStop_onmouseover() {
ImageStop.src = "Images/tz-01.gif";
}

function ImageStop_onmousedown() {
ImageStop.src = "Images/tz-01.gif";
}

function ImageStop_onmouseup() {
ImageStop.src = "Images/tz-02.gif";
}

function ImageStop_onmouseout() {
ImageStop.src = "Images/tz-02.gif";
}

function ImagePause_onclick() {
RP2.DoPause();
}

function ImagePause_onmouseover() {
ImagePause.src = "Images/ct-01.gif";
}

function ImagePause_onmousedown() {
ImagePause.src = "Images/ct-01.gif";
}

function ImagePause_onmouseup() {
ImagePause.src = "Images/ct-02.gif";
}
function ImagePause_onmouseout() {
ImagePause.src = "Images/ct-02.gif";
}

function ImageMute_onmousedown() {
RP2.SetMute( !RP2.GetMute() );
}

function ImageMute_onmouseup() {
if( RP2.GetMute() )
ImageMute.src = "Images/sy-02.gif";
else
ImageMute.src = "Images/sy-01.gif";
}
function ImageFullScreen_onmouseout() {
ImageFullScreen.src = "Images/qp-02.gif";
}
function ImageFullScreen_onmouseover() {
ImageFullScreen.src = "Images/qp-01.gif";
}

//-->
</script>

  • 打赏
  • 举报
回复
ehom 2002-07-24
具体含义,等你写过ActiveX控件就会明白!现在只要用Frontpage,选择插入ActiveX控件,一行代码也不用写!当它们是参数,定义!


  • 打赏
  • 举报
回复
发帖
ASP

2.8w+

社区成员

ASP即Active Server Pages,是Microsoft公司开发的服务器端脚本环境。
社区管理员
  • ASP
  • 无·法
加入社区
帖子事件
创建了帖子
2002-07-24 09:59
社区公告
暂无公告