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視頻播放設置
美工設計個頁面就行了