ASP网页嵌入一个视频播发器
最新想在自己做的ASP页面中嵌入一个播发器要能播放rmvb格式的就可以了,在网上看了那么多的代码都不懂,有没高手帮帮小弟啊...
最新想在自己做的ASP页面中 嵌入一个播发器 要能播放rmvb格式的就可以了,在网上看了那么多的代码都不懂,有没高手帮帮小弟啊
展开
1个回答
展开全部
html页里也可以嵌入播放器,跟asp没有关系
下面的代码已经解释得很详细了object代表播放器,input代表播放控制按钮
<object id="rpl" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=300 height=200>
<!--classid指定ActiveX控件的唯一的字符串标示-->
<param name="_ExtentX" value="11906">
<param name="_ExtentY" value="8996">
<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://127.0.0.1/VodieFile/2.wmv">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="Clip1">
<param name="imagestatus" value="1">
<param name="LOOP" value="-1">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<!--指定片断使用初始编码大小播放,并且在图像窗口的中央-->
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#ff0000">
<!--指定图像窗口背景色-->
</object>
<br>
<b>界面控制:</b><br>
CONTROLS模式切换:<br>
<input type="button" value="all" onclick="rpl.CONTROLS='all'">
<input type="button" value="ControlPanel" onclick="rpl.CONTROLS='ControlPanel'">
<input type="button" value="PlavButton" onclick="rpl.CONTROLS='PlavButton'">
<br>
<input type="button" value="PlayOnlyButton" onclick="rpl.CONTROLS='PlayOnlyButton'">
<input type="button" value="PauseButton" onclick="rpl.CONTROLS='PauseButton'">
<input type="button" value="StopButton" onclick="rpl.CONTROLS='StopButton'">
<br>
<input type="button" value="FFCtrl" onclick="rpl.CONTROLS='FFCtrl'">
<input type="button" value="RWCtrl" onclick="rpl.CONTROLS='RWCtrl'">
<input type="button" value="MuteCtrl" onclick="rpl.CONTROLS='MuteCtrl'">
<input type="button" value="MuteVolume" onclick="rpl.CONTROLS='MuteVolume'">
<input type="button" value="VolumeSlider" onclick="rpl.CONTROLS='VolumeSlider'">
<br>
<input type="button" value="PositionSlider" onclick="rpl.CONTROLS='PositionSlider'">
<input type="button" value="TACCtrl" onclick="rpl.CONTROLS='TACCtrl'">
<input type="button" value="HomeCtrl" onclick="rpl.CONTROLS='HomeCtrl'">
<input type="button" value="InfoVolumePanel" onclick="rpl.CONTROLS='InfoVolumePanel'">
<br>
<input type="button" value="InfoPanel" onclick="rpl.CONTROLS='InfoPanel'">
<input type="button" value="StatusBar" onclick="rpl.CONTROLS='StatusBar'">
<input type="button" value="StatusField" onclick="rpl.CONTROLS='StatusField'">
<input type="button" value="PositionField" onclick="rpl.CONTROLS='PositionField'">
<br>
<input type="button" value="当前模式" onclick="alert(rpl.CONTROLS)">
<input type="button" value="当前模式" onclick="alert(rpl.GetControls())">
<br><b>播放控制:</b><br>
<br>曲目控制:<br>
<input type="button" value="你是风儿我是沙" onclick="rpl.SetSource('http://127.0.0.1/VodieFile/2.wmv')">
<input type="button" value="白狐" onclick="rpl.SetSource('http://127.0.0.1/VodieFile/3.wmv')">
<input type="button" value="当前曲目" onclick="alert(rpl.GetSource())">
<br>播放控制:<br>
<input type="button" value="播放" onclick="rpl.DoPlay()">
<input type="button" value="暂停" onclick="rpl.DoPause()">
<input type="button" value="播放/暂停" onclick="rpl.DoPlayPause()">
<input type="button" value="停止" onclick="rpl.DoStop()">
<input type="button" value="当前播放状态" onclick="alert(rpl.GetPlayState())">
<br>静音控制:<br>
<input type="button" value="静音" onclick="rpl.SetMute(1)">
<input type="button" value="取消静音" onclick="rpl.SetMute(0)">
<input type="button" value="静音状态" onclick="alert(rpl.GetMute())">
<br>进度控制:<br>
<input type="button" value="回到开始" onclick="rpl.SetPosition(0)">
<input type="button" value="快进20秒" onclick="if(rpl.GetPosition()>20000){rpl.SetPosition(rpl.GetPosition()-20000)}else(rpl.SetPosition(0))">
<input type="button" value="快进20秒" onclick="rpl.SetPosition(rpl.GetPosition()+20000)">
<input type="button" value="回到最后" onclick="rpl.SetPosition(rpl.GetLength()-3000)">
<input type="button" value="当前进度" onclick="alert(rpl.GetPosition()/1000)">
<input type="button" value="总长度" onclick="alert(rpl.GetLength()/1000)">
<br>音量控制:<br>
<input type="button" value="最小" onclick="rpl.SetVolume(0)">
<input type="button" value="音量-" onclick="if(rpl.GetVolume()>9){rpl.SetVolume(rpl.GetVolume()-10)}">
<input type="button" value="音量+" onclick="rpl.SetVolume(rpl.GetVolume()+10)">
<input type="button" value="最大" onclick="rpl.SetVolume(100)">
<input type="button" value="当前音量" onclick="alert(rpl.GetVolume())">
<br>信息检测:<br>
<input type="button" value="GetIsPlus" onclick="alert(rpl.GetIsPlus())">
<input type="button" value="GetVersionInfo" onclick="alert(rpl.GetVersionInfo())">
<input type="button" value="GetLastMessage" onclick="alert(rpl.GetLastMessage())"><br>
<input type="button" value="GetConsoleEvents" onclick="alert(rpl.GetConsoleEvents())">
<input type="button" value="回放统计" onclick="rpl.HideShowStatistics()">
<br>剪辑信息:<br>
<input type="button" value="获取剪辑信息" onclick="alert(rpl.GetTitle())">
<input type="button" value="设置剪辑信息" onclick="rpl.SetTitle('这是美女翻唱滴~')">
<input type="button" value="获取剪辑信息" onclick="alert(rpl.GetEntryTitle(0))">
下面的代码已经解释得很详细了object代表播放器,input代表播放控制按钮
<object id="rpl" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width=300 height=200>
<!--classid指定ActiveX控件的唯一的字符串标示-->
<param name="_ExtentX" value="11906">
<param name="_ExtentY" value="8996">
<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://127.0.0.1/VodieFile/2.wmv">
<param name="CONTROLS" value="ImageWindow">
<param name="CONSOLE" value="Clip1">
<param name="imagestatus" value="1">
<param name="LOOP" value="-1">
<param name="NUMLOOP" value="0">
<param name="CENTER" value="0">
<!--指定片断使用初始编码大小播放,并且在图像窗口的中央-->
<param name="MAINTAINASPECT" value="0">
<param name="BACKGROUNDCOLOR" value="#ff0000">
<!--指定图像窗口背景色-->
</object>
<br>
<b>界面控制:</b><br>
CONTROLS模式切换:<br>
<input type="button" value="all" onclick="rpl.CONTROLS='all'">
<input type="button" value="ControlPanel" onclick="rpl.CONTROLS='ControlPanel'">
<input type="button" value="PlavButton" onclick="rpl.CONTROLS='PlavButton'">
<br>
<input type="button" value="PlayOnlyButton" onclick="rpl.CONTROLS='PlayOnlyButton'">
<input type="button" value="PauseButton" onclick="rpl.CONTROLS='PauseButton'">
<input type="button" value="StopButton" onclick="rpl.CONTROLS='StopButton'">
<br>
<input type="button" value="FFCtrl" onclick="rpl.CONTROLS='FFCtrl'">
<input type="button" value="RWCtrl" onclick="rpl.CONTROLS='RWCtrl'">
<input type="button" value="MuteCtrl" onclick="rpl.CONTROLS='MuteCtrl'">
<input type="button" value="MuteVolume" onclick="rpl.CONTROLS='MuteVolume'">
<input type="button" value="VolumeSlider" onclick="rpl.CONTROLS='VolumeSlider'">
<br>
<input type="button" value="PositionSlider" onclick="rpl.CONTROLS='PositionSlider'">
<input type="button" value="TACCtrl" onclick="rpl.CONTROLS='TACCtrl'">
<input type="button" value="HomeCtrl" onclick="rpl.CONTROLS='HomeCtrl'">
<input type="button" value="InfoVolumePanel" onclick="rpl.CONTROLS='InfoVolumePanel'">
<br>
<input type="button" value="InfoPanel" onclick="rpl.CONTROLS='InfoPanel'">
<input type="button" value="StatusBar" onclick="rpl.CONTROLS='StatusBar'">
<input type="button" value="StatusField" onclick="rpl.CONTROLS='StatusField'">
<input type="button" value="PositionField" onclick="rpl.CONTROLS='PositionField'">
<br>
<input type="button" value="当前模式" onclick="alert(rpl.CONTROLS)">
<input type="button" value="当前模式" onclick="alert(rpl.GetControls())">
<br><b>播放控制:</b><br>
<br>曲目控制:<br>
<input type="button" value="你是风儿我是沙" onclick="rpl.SetSource('http://127.0.0.1/VodieFile/2.wmv')">
<input type="button" value="白狐" onclick="rpl.SetSource('http://127.0.0.1/VodieFile/3.wmv')">
<input type="button" value="当前曲目" onclick="alert(rpl.GetSource())">
<br>播放控制:<br>
<input type="button" value="播放" onclick="rpl.DoPlay()">
<input type="button" value="暂停" onclick="rpl.DoPause()">
<input type="button" value="播放/暂停" onclick="rpl.DoPlayPause()">
<input type="button" value="停止" onclick="rpl.DoStop()">
<input type="button" value="当前播放状态" onclick="alert(rpl.GetPlayState())">
<br>静音控制:<br>
<input type="button" value="静音" onclick="rpl.SetMute(1)">
<input type="button" value="取消静音" onclick="rpl.SetMute(0)">
<input type="button" value="静音状态" onclick="alert(rpl.GetMute())">
<br>进度控制:<br>
<input type="button" value="回到开始" onclick="rpl.SetPosition(0)">
<input type="button" value="快进20秒" onclick="if(rpl.GetPosition()>20000){rpl.SetPosition(rpl.GetPosition()-20000)}else(rpl.SetPosition(0))">
<input type="button" value="快进20秒" onclick="rpl.SetPosition(rpl.GetPosition()+20000)">
<input type="button" value="回到最后" onclick="rpl.SetPosition(rpl.GetLength()-3000)">
<input type="button" value="当前进度" onclick="alert(rpl.GetPosition()/1000)">
<input type="button" value="总长度" onclick="alert(rpl.GetLength()/1000)">
<br>音量控制:<br>
<input type="button" value="最小" onclick="rpl.SetVolume(0)">
<input type="button" value="音量-" onclick="if(rpl.GetVolume()>9){rpl.SetVolume(rpl.GetVolume()-10)}">
<input type="button" value="音量+" onclick="rpl.SetVolume(rpl.GetVolume()+10)">
<input type="button" value="最大" onclick="rpl.SetVolume(100)">
<input type="button" value="当前音量" onclick="alert(rpl.GetVolume())">
<br>信息检测:<br>
<input type="button" value="GetIsPlus" onclick="alert(rpl.GetIsPlus())">
<input type="button" value="GetVersionInfo" onclick="alert(rpl.GetVersionInfo())">
<input type="button" value="GetLastMessage" onclick="alert(rpl.GetLastMessage())"><br>
<input type="button" value="GetConsoleEvents" onclick="alert(rpl.GetConsoleEvents())">
<input type="button" value="回放统计" onclick="rpl.HideShowStatistics()">
<br>剪辑信息:<br>
<input type="button" value="获取剪辑信息" onclick="alert(rpl.GetTitle())">
<input type="button" value="设置剪辑信息" onclick="rpl.SetTitle('这是美女翻唱滴~')">
<input type="button" value="获取剪辑信息" onclick="alert(rpl.GetEntryTitle(0))">
上海风华峻极智能科技
2022-05-05 广告
2022-05-05 广告
上海风华峻极智能科技有限公司【远程会议视频系统】一体化解决方案,如同面对面开会一般,让远程会议更简单,多种会议场景布局,舞台设备厂家,高保真语音的传输,极速快捷远程会议体验,只为高效沟通,支持万人及多房间同时在线....
点击进入详情页
本回答由上海风华峻极智能科技提供
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询