视频播放器asp源码(asp视频教程)
本文目录一览:
- 1、现在我要用ASP做一个网页的视频播放器,不知道可否用什么代码?还是可以直接调用系统的播放器?
- 2、网站上的视频点击播放用ASP代码怎么写呢?
- 3、请各位老兄,谁有网页中播放视频功能的asp代码
- 4、如何用ASP.NET实现视频播放器
- 5、怎么在asp网页上加一个在线视频播放功能!已经有了播放器源码
现在我要用ASP做一个网页的视频播放器,不知道可否用什么代码?还是可以直接调用系统的播放器?
ASP的?
看你要播放的影音文件的类型
一般都是调用系统自身的播放软件 这样不耗网站服务器的资源
现在最常见的一般都是.WMV 调用WMP播放 .RM/RMVB 调用REALPLAY播放
还有FLV调用Flash Player
源代码如下这是WMP的
param name="volume" value="100"是调整默认音量的选项,100是最大音量!
object id="mPlayer1" width=300 height=300 classid="CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6"
param name="URL" value="链接地址"
param name="rate" value="1"
param name="balance" value="0"
param name="currentPosition" value="0"
param name="defaultFrame" value
param name="playCount" value="100"
param name="autoStart" value="1"
param name="currentMarker" value="0"
param name="invokeURLs" value="1"
param name="baseURL" value
param name="volume" value="100"
param name="mute" value="0"
param name="uiMode" value="full"
param name="stretchToFit" value="0"
param name="windowlessVideo" value="0"
param name="enabled" value="1"
param name="enableContextMenu" value="1"
param name="fullScreen" value="0"
param name="SAMIStyle" value
param name="SAMILang" value
param name="SAMIFilename" value
param name="captioningID" value
param name="enableErrorDialogs" value="0"
param name="_cx" value="7779"
param name="_cy" value="1693"
/object
这是RM的
object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" name="player" width="300" height="240 d="player"
param name="_ExtentX" value="10001"
param name="_ExtentY" value="6879"
param name="AUTOSTART" value="-1"
param name="SHUFFLE" value="0"
param name="PREFETCH" value="0"
param name="NOLABELS" value="-1"
param name="SRC" value="链接地址"
param name="CONTROLS" value="Imagewindow"
param name="CONSOLE" value="clip1"
param name="LOOP" value="true"
param name="NUMLOOP" value="0"
param name="CENTER" value="0"
param name="MAINTAINASPECT" value="0"
param name="BACKGROUNDCOLOR" value="#000000"
/object
object classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="300" height="50" id="RP2"
param name="_ExtentX" value="10001"
param name="_ExtentY" value="1270"
param name="AUTOSTART" value="-1"
param name="SHUFFLE" value="0"
param name="PREFETCH" value="0"
param name="NOLABELS" value="-1"
param name="SRC" value="链接地址"
param name="CONTROLS" value="ControlPanel,StatusBar"
param name="CONSOLE" value="clip1"
param name="LOOP" value="true"
param name="NUMLOOP" value="0"
param name="CENTER" value="0"
param name="MAINTAINASPECT" value="0"
param name="BACKGROUNDCOLOR" value="#000000"
/object
这是FLV的
object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="" width="500" height="400"
param name="movie" value="" /
param name="quality" value="high" /
param name="allowFullScreen" value="true" /
param name="FlashVars" value="vcastr_file=神舟七号点火发射瞬间.flvLogoText=;BufferTime=3" /
embed src="" allowfullscreen="true" flashvars="vcastr_file=神舟七号点火发射瞬间.flvLogoText=" quality="high" pluginspage="" type="application/x-shockwave-flash" width="500" height="400"/embed
/object
网站上的视频点击播放用ASP代码怎么写呢?
需要知道你的视频 是哪里来的,什么格式的
如果是其他视频网站的上视频 ,如土豆网上的,他们提供代码的,直接放进网站里就好
如果是自己的视频 ,要转成mp4或flv的才可以在网上播放,不过,还需要一个播放器
这些都是前端的问题,好像用不到asp代码
请各位老兄,谁有网页中播放视频功能的asp代码
Realplay 的html播放器代码
[code]
object id="player" name="player" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="400" height="272"
param name="_ExtentX" value="18415"
param name="_ExtentY" value="9102"
param name="AUTOSTART" value="-1"
param name="SHUFFLE" value="0"
param name="PREFETCH" value="0"
param name="NOLABELS" value="-1"
param name="SRC" value="bt.rm"
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"
/objectbr
object ID="RP2" CLASSID="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" WIDTH="400" HEIGHT="57"
param name="_ExtentX" value="18415"
param name="_ExtentY" value="1005"
param name="AUTOSTART" value="-1"
param name="SHUFFLE" value="0"
param name="PREFETCH" value="0"
param name="NOLABELS" value="-1"
param name="SRC" value="bt.rm"
param name="CONTROLS" VALUE="ControlPanel,StatusBar"
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
[/code]
===================================================================
===================================================================
RealPlayer
代码:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
""
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
titleRealMedia/title
/head
body
pRealMedia/p
p object id="RVOCX" classid="CLSID:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA" width="320" height="172"
param name="SRC" value="realmedia.rm"
param name="CONTROLS" value="ImageWindow"
param name="CONSOLE" value="cons"
embed autostart="true" src="realmedia.rm" type="audio/x-pn-realaudio-plugin" width="320" height="172" controls="ImageWindow" console="cons" /embed
param name="autostart" value="true"
/object
/p
p
object id=RVOCX classid="CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA" width="320" height="30"
param name="SRC" value="realmedia.rm"
param name="CONTROLS" value="ControlPanel"
param name="CONSOLE" value="cons"
embed src="realmedia.rm" type="audio/x-pn-realaudio-plugin" width="320" height="30" controls="ControlPanel" console="cons" /embed
/object /p
/body
/html
Windows Media Player
代码:
!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
""
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
titleWindows Media/title
/head
body
pWindows Media/p
pobject id="PlayerEx2" classid="clsid:6BF52A52-394A-11d3-B153-00C04F79FAA6" width="320" height="217"
param name="autoStart" value="true" /
param name="URL" value="windowsmedia.wmv" /
embed autostart="true" src="windowsmedia.wmv" type="video/x-ms-wmv" width="320" height="217" controls="ImageWindow" console="cons" /embed
/object/p
/body
/html
======================================================================
======================================================================
15:08 2006-8-5 网友 nweisha 回复
object classid=clsid:22d6f312-b0f6-11d0-94ab-0080c74c7e95 width=190 height=70
param name=showstatusbar value=1
param name=autostart value=false
param name=filename value=music/107442.wma
embed src=music/107442.wma width="190" height="70"/embed
/object
你可以改大点,这个是放无图的wma,你可以改成wmp,尺寸自己改了。
======================================================================
======================================================================
15:30 2006-8-5
-- 通用播放器源代码
演示地址:
;type=rm
由film.asp传递参数给play.asp文件并播放
play.asp源代码如下:
html
head
title[视频点播]/title
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
link rel="stylesheet" href="../inc_file/51837.css" type="text/css"
/head
body leftmargin="0" topmargin="0" class="87bd-2a58-3bb1-385d high" bgcolor="#337b49"center
% if request("type")="rm" then%
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="%=request("url")%"
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"
/objectBRobject 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="%=request("url")%"
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
/object%else%
object id="MediaPlayer" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6"
codebase=
standby="Loading Microsoft? Windows Media? Player components..." type="application/x-oleobject" width=427 height=330
param name="URL" value="%=request("url")%"
param name="UIMode" value="full"
param name="AutoStart" value="true"
param name="Enabled" value="true"
param name="enableContextMenu" value="true"
/object%end if%font color=#ffffff注意:如不能观看者请下载 a href="rp8-cn-setup.exe"font color=#ffffffRealPlayer V8.0/font/a a href="mpsetup_9x.exe"font color=#ffffffWindows Media Player V9.0/font/a/font/center/body/html
======================================================================================================================================================================================================================================================================================
======================================================================================================================================================================================================================================================================================
15:37 2006-8-5
网页背景音乐代码:
将这段代码插入到您的head/head之间
当您打开网站时即可听到背景音乐:
bgsound src=china.mid loop="-1"
这种当网页最小化之后,音乐会消失
网页背景音乐的代码:
embed src="" quality=high pluginspage="" type="application/x-shockwave-flash" width="1" height="1"/embed
1.mid表示音效文件
embed src="1.swf" quality=high pluginspage="" type="application/x-shockwave-flash" width="1" height="1"/embed
上面的网页背景音乐代码可以加入FLASH动画的绝对地址(或相对地址)
embed width=1 height=1 autostart="true" loop="true" controls=PlayButton console=clip1 nolabels=true type="audio/x-pn-realaudio-plugin" src="1.ram" /embed
ram格式的音乐文件专用网页背景音乐代码:
embed src="1.mid" align="center" border="0" width="1" height="1" width="100" autostart="true" loop="true"
指定播放器的大小(width、heigh)、是否自动(autostart标记)、是否循环播放(loop标记),而浏览者则可以自主地决定是否播放音乐。
此代码可以当作网页中插入FLASH动画的代码用。只要把1.mid替换为FLASH动画的相对地址或决对地址就OK了。
embed src="1.mp3" align="center" border="0" width="1" height="1" width="100" autostart="true" loop="true"
此代码可以加mp3形式的音乐为网页背景音乐
EMBED src="" width="0" height="0" border=0 autostart="ture" loop="ture"/EMBED
1.mid表示音效文件
bgsound src="1.mid" loop=3
表示将1.mid音效文件插入到页面为背景音乐,并循环播放3次。
embed src="1.mid" hidden="true"
1.mid表示音效文件
bgsound src="1.mid" loop="infinte"
1.mid表示音效文件
embed src="1.mid" hidden="true" loop="true"
1.mid表示音效文件
bgsound src=1.mid loop="-1"
1.mid表示音效文件
网页音乐播放器代码
rm文件在线播放
embed height=25 src= type=audio/x-pn-realaudio-plugin width=50 autostart="false" controls="PlayButton"
autostart="false" 打开页面时处于候命状态,autostart="true" 打开页面时马上听声音 height=25 width=50 有不同数值,播放器面板有些不同
midi、au、avi文件在线播放
EMBED SRC=""; width="47" height="24" AUTOSTART=TRUEautostart="false" 打开页面时处于候命状态,autostart="true" 打开页面时马上听声音 height=25 width=50 有不同数值,播放器面板有些不同
asf文件在线播放
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= 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="";
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为打开页面处于待命状态,为1时打开页面直接播放 /body
/html
流式收听mp3方法:
http://*.mp3,http://*.mp3,http://...琱ttp://*.mp3,
把上面的的文件另存为*.m3u,就可实现在线播放*.mp3(支持连续播放)
mpeg影象在线播放:
等等,让它下载img border="0" dynsrc=" ;
" start="fileopen"
rm影像在线播放 代码:
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="";
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="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="";
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="";
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
embed src=""
autostart="true" loop="true" width="200" height="150"
把这个网址换成你要看的电影就行了
有图像的rm格式:
OBJECT classid='clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA' height=288 id=video1 width=305 VIEWASTEXT
param name='_ExtentX' value='5503'
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='CONTROLS' value='Imagewindow,StatusBar,ControlPanel'
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
无图像的rm格式:如相声,歌曲。。。
object ID='video2' WIDTH='300' HEIGHT='62' CLASSID='CLSID:CFCDAA03-8BE4-11CF-B84B-0020AFBBCCFA'
param name='_ExtentX' value='9657'
param name='_ExtentY' value='847'
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='CONTROLS' value='StatusBar,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
最简单的media格式的播放器。。自动识别有无图像,但是版本是你机器的!
embed src='mms://61.175.132.221/tv/mtv/f4/makeawish.wmv' width=200 height=200 autostart=true loop=true/embed
有图像的media播放器,自动调用网上的插件。
object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=265 codebase= Microsoft? Windows Media? Player components... type=application/x-oleobject
param name='URL' value=''
PARAM NAME='UIMode' VALUE='full'PARAM NAME='AutoStart' VALUE='true'
PARAM NAME='Enabled' VALUE='true'
PARAM NAME='enableContextMenu' VALUE='false'
param name='WindowlessVideo' VALUE='true'/object
无图像的media播放器。。。同上。
object id=nstv classid='CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6' width=280 height=60 codebase= Microsoft? Windows Media? Player components... type=application/x-oleobject
param name='URL' value=''
PARAM NAME='UIMode' VALUE='full'PARAM NAME='AutoStart' VALUE='true'
PARAM NAME='Enabled' VALUE='true'
PARAM NAME='enableContextMenu' VALUE='false'
/object
只是界面不同的media的调插件播放器。。建议不用这个,,你可以看!
embed src='' type='audio/x-pn-realaudio-plugin' console='Clip1' controls='ControlPanel,StatusBar' height='60' width='275' autostart='true'/embed
=============================================================================================================================================================================================================
=============================================================================================================================================================================================================
15:39 2006-8-5 MPEG 播放器源代码下载
OBJECT id=mPlayer1 height=350 width=350 classid=CLSID:6BF52A52-394A-11D3-B153-00C04F79FAA6
PARAM NAME="URL" VALUE="URL"
PARAM NAME="rate" VALUE="1"
PARAM NAME="balance" VALUE="0"
PARAM NAME="currentPosition" VALUE="0"
PARAM NAME="defaultFrame" VALUE=""
PARAM NAME="playCount" VALUE="1"
PARAM NAME="autoStart" VALUE="-1"
PARAM NAME="currentMarker" VALUE="0"
PARAM NAME="invokeURLs" VALUE="-1"
PARAM NAME="baseURL" VALUE=""
PARAM NAME="volume" VALUE="100"
PARAM NAME="mute" VALUE="0"
PARAM NAME="uiMode" VALUE="full"
PARAM NAME="stretchToFit" VALUE="0"
PARAM NAME="windowlessVideo" VALUE="0"
PARAM NAME="enabled" VALUE="-1"
PARAM NAME="enableContextMenu" VALUE="-1"
PARAM NAME="fullScreen" VALUE="0"
PARAM NAME="SAMIStyle" VALUE=""
PARAM NAME="SAMILang" VALUE=""
PARAM NAME="SAMIFilename" VALUE=""
PARAM NAME="captioningID" VALUE=""
PARAM NAME="enableErrorDialogs" VALUE="0"
PARAM NAME="_cx" VALUE="9260"
PARAM NAME="_cy" VALUE="9260"
/OBJECT
==================================================================================
如何用ASP.NET实现视频播放器
考下边这些播放器代码:
将"影片URL路径"修改成你的真实/有效的访问地址(路径)即可,具体的页面设置,要你自己修改了
1.avi格式
object id="video" width="400" height="200" border="0" classid="clsid:CFCDAA03-8BE4-11cf-B84B-0020AFBBCCFA"
param name="ShowDisplay" value="0"
param name="ShowControls" value="1"
param name="AutoStart" value="1"
param name="AutoRewind" value="0"
param name="PlayCount" value="0"
param name="Appearance value="0 value="""
param name="BorderStyle value="0 value="""
param name="MovieWindowHeight" value="240"
param name="MovieWindowWidth" value="320"
param name="FileName" value="影片URL路径"
embed width="400" height="200" border="0" showdisplay="0" showcontrols="1" autostart="1" autorewind="0" playcount="0" moviewindowheight="240" moviewindowwidth="320" filename="" src="Mbar.avi"
/embed
/object
2.mpg格式
object classid="clsid:05589FA1-C356-11CE-BF01-00AA0055595A" id="ActiveMovie1" width="239" height="250"
怎么在asp网页上加一个在线视频播放功能!已经有了播放器源码
html
head
meta http-equiv="Content-Type" content="text/html; charset=gb2312"
title视频广告/title
style type="text/css"
!--
body {
background-color: #000000;
margin-left: 0px;
margin-top: 0px;
margin-right: 0px;
margin-bottom: 0px;
}
--
/style
link href="css.css" rel="stylesheet" type="text/css"
/head
body onselectstart="return false;"
noscriptiframe src=*.html/iframe/noscript
script
function stop(){
return false;
}
document.oncontextmenu=stop;
/script
%
sql="select * from [video] order by id desc"
set rs=server.createobject("adodb.recordset")
rs.open sql,conn,1,1
%
SCRIPT language=javascript
var title = new Array();
var videourl = new Array();
var imagurl = new Array();
var cursel = 0;
%
for i=1 to rs.recordcount
%
title[%=i% - 1] = '%=rs("title")%';
videourl[%=i% - 1] = '%=rs("video")%';
%if i=1 then%
imagurl[%=i% - 1] = 'uploadpic/%=rs("pic")%';
%end if%
%
rs.movenext
next
%
/SCRIPT
!--#include file="top.asp" --
table width="760" border="0" align="center" cellpadding="0" cellspacing="0"
tr
tdimg src="images/tv_r2_c1.jpg"/td
/tr
/table
table width="760" height="573" border="0" align="center" cellpadding="0" cellspacing="0"
tr
td width="168" height="573" rowspan="2" background="images/tv_1.gif" bgcolor="#3C3D3F"div align="left"img src="images/tv_22.jpg" width="168" height="573"/div/td
td width="592" height="452" valign="top" bgcolor="#232323"table border="0" cellspacing="0" cellpadding="0"
tr
td colspan="3"img src="images/tv_3.jpg" width="592" height="47"/td
/tr
tr
td width="23" height="318"img src="images/tv_8.jpg" width="23" height="318"/td
td width="537"table width="537" height="318" border="0" cellpadding="0" cellspacing="0"
tr
td colspan="3" valign="top"LAYER name="Layer1" left="361" top="0" z-index="1"
width="537" height="318" id=Layer1
DIV id=MaskIMG
style="Z-INDEX: 2; VISIBILITY: hidden; POSITION: absolute"IMG
height=318 src="images/loading.gif" width=537
border=0/DIV
DIV id=MaskPreIMG
style="Z-INDEX: 2; VISIBILITY: visible; POSITION: absolute"img
id=imag1 onClick=SetVideoSource(0) height=318 alt=点击播放视频
width=537 border=0/DIV
!--init mask--
DIV id=MPlayer
style="Z-INDEX: 3; VISIBILITY: hidden; POSITION: absolute"
OBJECT id=NSPlay
codeBase=
type=application/x-oleobject height=318
standby="加载 Microsoft Windows Media Player 组件..." width=537
classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 VIEWASTEXTPARAM NAME="FileName" VALUE=""PARAM NAME="AutoStart" VALUE="true"PARAM NAME="AutoRewind" VALUE="-1"PARAM NAME="AnimationAtStart" VALUE="false"PARAM NAME="ShowControls" VALUE="false"PARAM NAME="ClickToPlay" VALUE="false"PARAM NAME="EnableContextMenu" VALUE="true"PARAM NAME="EnablePositionControls" VALUE="false"PARAM NAME="Balance" VALUE="0"PARAM NAME="ShowStatusBar" VALUE="false"PARAM NAME="AutoSize" VALUE="0"
embed
type="application/x-mplayer2"
pluginspage=""
filename src autostart="false" enablecontextmenu="false"
clicktoplay="false" enablepositioncontrols="false"
showcontrols="0" showstatusbar="1" showdisplay="0" width="272"
height="201"/embed/OBJECT/DIV/LAYER/td
/tr
/table/td
td width="32" valign="top"img src="images/tv_9.jpg" width="32" height="318"/td
/tr
tr
td colspan="3"table width="100%" border="0" cellpadding="0" cellspacing="0"
tr
tdimg src="images/tv_10.jpg" width="592" height="17"/td
/tr
tr
tdtable width="100%" border="0" cellspacing="0" cellpadding="0"
tr
tdimg src="images/tv_13.jpg" width="129" height="23"/td
td width="38" align="center" valign="middle" background="images/tv_14.jpg" class="2a58-3bb1-385d-2355 font"a style="CURSOR: hand"
onclick=SetDisplaySize(3)全屏/a/td
tdimg src="images/tv_15.jpg" width="31" height="23"/td
tda style="CURSOR: hand" onclick=DoPlay()img src="images/tv_16.jpg" alt="播放" width="26" height="23" border="0"/a/td
tdimg src="images/tv_17.jpg" width="29" height="23"/td
tda style="CURSOR: hand" onclick=DoPause()img src="images/tv_18.jpg" alt="暂停" width="27" height="23" border="0"/a/td
tdimg src="images/tv_19.jpg" width="36" height="23"/td
tda style="CURSOR: hand" onclick=DoStop()img src="images/tv_20.jpg" alt="停止" width="25" height="23" border="0"/a/td
tdimg src="images/tv_21.jpg" width="251" height="23"/td
/tr
/table/td
/tr
tr
tdimg src="images/tv_12.jpg" width="592" height="49"/td
/tr
/table/td
/tr
/table
table width="100%" border="0" cellspacing="5" cellpadding="0"
tr
%
rs.movefirst
for o=1 to rs.recordcount
%
%if int((o-1)/5)=(o-1)/5 then%
/tr
tr
tda class="3bb1-385d-2355-b44f font4" style="CURSOR: hand" href="javascript:SetVideoSource(%=o-1%)"
div id=video%=o-1%/div
/a/td
%else%
tda class="385d-2355-b44f-c776 font4" style="CURSOR: hand" href="javascript:SetVideoSource(%=o-1%)"
div id=video%=o-1%/div
/a/td
%end if%
%
rs.movenext
next
%
script language=JavaScript
%
rs.movefirst
for p=1 to rs.recordcount
%
video%=p-1%.innerHTML = title[%=p-1%];
%
rs.movenext
next
%
/script
/tr
/table/td
/tr
tr
td valign="top" bgcolor="#232323" /td
/tr
/table
!--#include file="foot.asp" --
SCRIPT language=JavaScriptimag1.src = imagurl[0];/SCRIPT
SCRIPT language=JavaScript
!--
var Player;
var isplaying;
var ispause;
var isstop;
isstop = false;
isplaying = false;
ispause = false;
Player = "document.NSPlay";
var filename = '';
function DoPlay()
{
if (!isplaying)
{
if (eval(Player).FileName == '')
{
SetVideoSource(0);
return;
}
eval(Player).Play();
isplaying = true;
ispause = false;
isstop = false;
MaskIMG.style.visibility = "hidden";
MaskPreIMG.style.visibility= "hidden";
MPlayer.style.visibility = "visible";
adimage.style.visibility= "hidden";
}
}
function DoStop()
{
if (isplaying || ispause)
{
eval(Player).CurrentPosition = 0;
eval(Player).Stop();
eval(Player).FileName = '';
MPlayer.style.visibility = "hidden";
MaskPreIMG.style.visibility = "visible";
isstop = true;
isplaying = false;
ispause = false;
}
}
function DoPause()
{
if (isplaying)
{
eval(Player).Pause();
isplaying = false
ispause = true
isstop = false;
}
}
function SetSource(srcname)
{
isplaying = true;
ispause = false
isstop = false;
filename = srcname;
eval(Player).FileName = srcname;
MaskPreIMG.style.visibility = "hidden";
MaskIMG.style.visibility = "hidden";
MPlayer.style.visibility = "visible";
}
// 全屏 setting=3
// 100% setting=0
// 50% setting=1
// 200% setting=2
function SetDisplaySize(setting)
{
if (isplaying)
eval(Player).DisplaySize = setting;
}
--
/SCRIPT
SCRIPT language=JScript event=EndOfStream(lResult) for=NSPlay
DoStop()
/SCRIPT
SCRIPT language=JavaScript event=Buffering(bStart) for=NSPlay
if (bStart == 0){
//alert(BufferingProgress);
MPlayer.style.visibility = "visible";
MaskIMG.style.visibility = "hidden";
MaskPreIMG.style.visibility = "hidden";
}
else{
//alert(1);
MPlayer.style.visibility = "hidden";
MaskIMG.style.visibility = "visible";
MaskPreIMG.style.visibility = "hidden";
}
/SCRIPT
SCRIPT language=JavaScript type=text/JavaScript
!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//--
/SCRIPT
SCRIPT language=JavaScript
var playitem = 0;
function SetVideoSourcebak(sel)
{
DoStop();
adimage.style.visibility = "visible";
MPlayer.style.visibility = "hidden";
playitem = sel;
setTimeout("beginplay()",5000);
}
function beginplay()
{
adimage.style.visibility = "hidden";
MPlayer.style.visibility = "visible";
SetSource('mms://'+videourl[playitem]);
}
function SetVideoSource(sel)
{
SetSource('mms://'+videourl[sel]);
}
/SCRIPT
!--视频广告消除--
SCRIPT language=Javascript
function disablead()
{
adimage.style.visibility = "hidden";
}
//setTimeout("disablead()",5000);
/SCRIPT
/body
/html