asp视频播放
① 关于ASP的视频播放。。。
用jquery插件吧,网上大大的有
② ASP播放视频
1,建立好播放页页的模板,并根据视频的格式选择好播放器代码
2.连接数据库,读取视频路径表,并将播放器的路径赋值。
这样执行起来就是播放了。
③ 怎么在.asp中插入视频播放器!要详细代码!!着急啊。大家帮忙!!谢谢了!!求大神帮助
RealPlayer 代码如下: 龙行天下 http://llf535.cn AUTOSTART 0为打开页面处于待命状态,为-1时打开页面直接播放 http://music.cnvnet.com/mtv/20010618/001.ram"; /> http://www.llf535.com 中国站长网 播放文件地址 龙行天下 http://llf535.cn http://music.cnvnet.com/mtv/20010618/001.ram"; /> 播放文件地址 宝贝时尚乐园 http://www.babyard.com
求采纳
④ asp怎么播放视频
根据不同的视频格式,有不同的视频播放代码,网上有的是,过来就可以用,只要把路径处理好就行,有的ewebeditor 也有支持上传视频的功能,但是小型视频。
⑤ Asp.net 网页中怎么播放视频详解
给你来个详细的,你只需要复制链接地址到指定路径基本没问题,你到优酷上去找个链接复制进去试试
<object id="player" height="64" width="275" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
<param name="AutoStart" value="-1" />
<!--是否自动播放-->
<param name="Balance" value="0" />
<!--调整左右声道平衡-->
<param name="enabled" value="-1" />
<!--播放器是否可人为控制-->
<param name="EnableContextMenu" value="-1" />
<!--是否启用上下文菜单-->
<param name="url" value="文件路径/文件名" />
<!--播放的文件地址-->
<param name="PlayCount" value="1" />
<!--播放次数控制,为整数-->
<param name="rate" value="1" />
<!--播放速率控制,1为正常,允许小数,1.0-2.0-->
<param name="currentPosition" value="0" />
<!--控件设置:当前位置-->
<param name="currentMarker" value="0" />
<!--控件设置:当前标记-->
<param name="defaultFrame" value="" />
<!--显示默认框架-->
<param name="invokeURLs" value="0" />
<!--脚本命令设置:是否调用URL-->
<param name="baseURL" value="" />
<!--脚本命令设置:被调用的URL-->
<param name="stretchToFit" value="0" />
<!--是否按比例伸展-->
<param name="volume" value="50" />
<!--默认声音大小0%-100%,50则为50%-->
<param name="mute" value="0" />
<!--是否静音-->
<param name="uiMode" value="mini" />
<!--播放器显示模式:Full显示全部;mini最简化;None不显示播放控制,只显示视频窗口;invisible全部不显示-->
<param name="windowlessVideo" value="0" />
<!--如果是0可以允许全屏,否则只能在窗口中查看-->
<param name="fullScreen" value="0" />
<!--开始播放是否自动全屏-->
<param name="enableErrorDialogs" value="-1" />
<!--是否启用错误提示报告-->
<param name="SAMIStyle" value="value" />
<!--SAMI样式-->
<param name="SAMILang" value="value" />
<!--SAMI语言-->
<param name="SAMIFilename" value="value" />
<!--字幕ID-->
</object>
⑥ asp 视频播放
可以试试:
<EMBED src="视频地址" width="499" height="356" type="audio/x-wav" loop="true" autostart="true"></EMBED>
⑦ 请问一下:本地视频文件如何在ASP网页中播放
那你就先在相应的网页插入一个播放器的插件,在插件中都会有视频地址的
然后你把从数据库中获取的视频地址替换播放器里面的地址就行了
⑧ asp文件如何播放
asp文件不能播放,它是一个网页。
你下载时肯定是点的鼠标右键选择的目录另存为吧?
建议你直接点击左键下载,这样才能下载下来真正的视频文件。
⑨ 怎么在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;">
<noscript><iframe 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>
<td><img 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=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701
type=application/x-oleobject height=318
standby="加载 Microsoft Windows Media Player 组件..." width=537
classid=CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95 VIEWASTEXT><PARAM 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="http://www.microsoft.com/Windows/Downloads/Contents/Procts/MediaPlayer/"
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>
<td><img src="images/tv_10.jpg" width="592" height="17"></td>
</tr>
<tr>
<td><table width="100%" border="0" cellspacing="0" cellpadding="0">
<tr>
<td><img src="images/tv_13.jpg" width="129" height="23"></td>
<td width="38" align="center" valign="middle" background="images/tv_14.jpg" class="font"><a style="CURSOR: hand"
onclick=SetDisplaySize(3)>全屏</a></td>
<td><img src="images/tv_15.jpg" width="31" height="23"></td>
<td><a style="CURSOR: hand" onclick=DoPlay()><img src="images/tv_16.jpg" alt="播放" width="26" height="23" border="0"></a></td>
<td><img src="images/tv_17.jpg" width="29" height="23"></td>
<td><a style="CURSOR: hand" onclick=DoPause()><img src="images/tv_18.jpg" alt="暂停" width="27" height="23" border="0"></a></td>
<td><img src="images/tv_19.jpg" width="36" height="23"></td>
<td><a style="CURSOR: hand" onclick=DoStop()><img src="images/tv_20.jpg" alt="停止" width="25" height="23" border="0"></a></td>
<td><img src="images/tv_21.jpg" width="251" height="23"></td>
</tr>
</table></td>
</tr>
<tr>
<td><img 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>
<td><a class="font4" style="CURSOR: hand" href="javascript:SetVideoSource(<%=o-1%>)">
<div id=video<%=o-1%>></div>
</a></td>
<%else%>
<td><a class="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=JavaScript>imag1.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>
⑩ asp视频播放设置
美工设计个页面就行了