日期:2014-05-18  浏览次数:20527 次

ASP.NET如何实现在线视频播放啊
我在后台上传了很多视频.视频的地址保存在数据库.
视频文件保存在制定的文件夹中.

前台要将这些视频显示,并且播放.
和http://www.youku.com/一样的.

请问怎么实现啊.

帮帮忙吧,各位大哥,大姐们.

------解决方案--------------------


<object classid= "clsid:22D6F312-B0F6-11D0-94AB-0080C74C7E95 " id= "MediaPlayer1 " width= "320 " height= "290 ">
<param name= "AudioStream " value= "/-1 ">
<param name= "AutoSize " value= "-1 ">
<!--是否自动调整播放大小-->
<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 ">
<!--左右声道平衡,最左-9640,最右9640-->
<param name= "BaseURL " value>
<param name= "BufferingTime " value= "15 ">
<!--缓冲时间-->
<param name= "CaptioningID " value>
<param name= "ClickToPlay " value= "-1 ">
<param name= "CursorType " value= "0 ">
<param name= "CurrentPosition " value= "0 ">
<!--当前播放进度 -1 表示不变,0表示开头 单位是秒,比如10表示从第10秒处开始播放,值必须是-1.0或大于等于0-->
<param name= "CurrentMarker " value= "0 ">
<param name= "DefaultFrame " value>
<param name= "DisplayBackColor " value= "0 ">
<param name= "DisplayForeColor " value= "16777215 ">
<param name= "DisplayMode " value= "0 ">
<param name= "DisplaySize " value= "0 ">
<!--视频1-50%, 0-100%, 2-200%,3-全屏 其它的值作0处理,小数则采用四舍五入然后按前的处理-->
<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= " <%=strVideoFile%> " valuetype= "ref ">
<!--播放的文件地址-->
<param name= "InvokeURLs " value= "-1 ">
<param name= "Language " value= "-1 ">
<param name= "Mute " value= "0 ">
<!--是否静音-->
<param name= "PlayCount " value= "0 ">
<!--重复播放次数,0为始终重复-->
<param name= "PreviewMode " value= "-1 ">
<param name= "Rate " value= "1 ">
<!--播放速率控制,1为正常,允许小数-->
<param name= "SAMIStyle " value>
<!--SAMI样式-->
<param name= "SAMILang " value>
<!--SAMI语言-->
<param name= "SAMIFilename " value>
<!--字幕ID-->
<param name= "SelectionStart " value= "-1 ">
<param name= "SelectionEnd " value= "-1 ">
<param name= "SendOpenStateChangeEvents " value= "-1 ">
<param name= "SendWarningEvents " value= "