日期:2014-05-17  浏览次数:20539 次

.net网站,怎样实现视频拖动播放?
我的.net网站视频播放只有在客户机全部下载完之后,才能随意拖动,怎样做的像视频网站那样随意拖动,动态下载。我用的是wmv格式视频,代码见图片。是从网上找的一般的mediaplayer的播放器控件
这是我的代码
HTML code

<object class="OBJECT" id="MediaPlayer" align="middle" 
                                                classid="CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95">
  <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="5" />
  <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="16777215" />
  <param name="DisplayMode" value="0" />
  <param name="DisplaySize" value="4" />
  <param name="Enabled" value="-1" />
  <param name="EnableContextMenu" value="-1" />
  <param name="EnablePositionControls" value="-1" />
  <param name="EnableFullScreenControls" value="0" />
  <param name="EnableTracker" value="-1" />
  <param name="Filename" value="<%=add1%>">
  <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="-1" />
  <param name="ShowDisplay" value="0" />
  <param name="ShowGotoBar" value="0" />
  <param name="ShowPositionControls" value="-1" />
  <param name="Show