怎么用asp.net做在线观看视频的代码 求源代码 要求支持给中格式的视频 并且有视频的各种功能 先谢谢了
------解决方案--------------------------------------------------------
播放视频要考虑视频是否能能被下载,是否顺畅,访问量过大时如何处理
一般都是用FLV格式
还是用directshow ,FMS架设流媒体服务器
<object id="NSPlay" width=200 height=180
classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95"
codebase="http://activex.microsoft.com/activex/controls
/mplayer/en/nsmp2inf.cab#Version=6,4,5,715"
standby="Loading Microsoft Windows Media Player components..." type="application/x-oleobject" align="right" hspace="5">
<param name="AutoRewind" value=1>
<param name="FileName" value="xx.wmv">
<param name="ShowControls" value="1">
<param name="ShowPositionControls" value="0">
<param name="ShowAudioControls" value="1">
<param name="ShowTracker" value="0">
<param name="ShowDisplay" value="0">
<param name="ShowStatusBar" value="0">
<param name="ShowGotoBar" value="0">
<param name="ShowCaptioning" value="0">
<param name="AutoStart" value=1>
<param name="Volume" value="-2500">
<param name="AnimationAtStart" value="0">
<param name="TransparentAtStart" value="0">
<param name="AllowChangeDisplaySize" value="0">
<param name="AllowScan" value="0">
<param name="EnableContextMenu" value="0">
<param name="ClickToPlay" value="0">
</object>
http://topic.csdn.net/u/20091028/12/ea951082-70d4-46be-9c43-d07ce77e000a
------解决方案--------------------------------------------------------
不过远古播放器要在server2003才能用 下面是播放电影的页面 (注<PARAM NAME='URL' VALUE='<%#movie_Allurl%>'> 这是电影路径)
<%@ Page Language="C#" AutoEventWireup="true" CodeFile="playmovie.aspx.cs" Inherits="playmovie" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" >
<head runat="server">
<title>欢迎播放</title>
<script>
function window.onload()
{
var obj=document.getElementById("QvodPlayer");
window.resizeTo(obj.offsetWidth ,obj.offsetHeight+37);
width=screen.width;
heigt=screen.height;
window.moveTo((width-obj.offsetWidth)/2,(heigt-obj.offsetHeight)/2);
}
</script>
</head>
<body style="margin:0; margin-bottom:0; height:100%">
<object classid="clsid:F3D0D36F-23F8-4682-A195-74C92B03D4AF" width="600" height="500" id="QvodPlayer" name="QvodPlayer">
<PARAM NAME='URL' VALUE='<%#movie_Allurl%>'><PARAM NAME='Autoplay' VALUE='1'>
</object>
</body>
</html>