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

wmv视频播放求解
wmv视频,在winxp ,ie6环境下,网页中播放器不能播放,但在win7,ie8下可以播放,部分代码如下:
--------------------------
<object id="mPlayer" width="100%" height="100%" type="application/x-oleobject" CLASSID="CLSID:22D6F312-B0F6-11D0-94AB-0080C74C7E95" CodeBase="http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=5,1,52,701" Standby="加载 Microsoft Windows Media Player 组件..." VIEWASTEXT>
<PARAM NAME="FILENAME" value="winplay.asp?num=<%=num%>&id=<%=id%>&dnum=<%=s%>">
<PARAM NAME="ShowControls" VALUE="false">
<PARAM NAME="AutoStart" VALUE="true">
<PARAM NAME="Enabled" VALUE="true">
<PARAM NAME="EnableContextMenu" VALUE="true">
<PARAM NAME="ClickToPlay" VALUE="false">
<PARAM NAME="stretchToFit" VALUE="1">
<PARAM NAME="ShowStatusBar" VALUE="True">
<PARAM NAME="AllowChangeDisplaySize" VALUE="true">
<PARAM NAME="Volume" VALUE="0">
<PARAM NAME="SendOpenStateChangeEvents" VALUE="True">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="True">
<PARAM NAME="AnimationAtStart" VALUE="false">
<PARAM NAME="Balance" VALUE="-600">
<PARAM NAME="BaseURL" VALUE="">
<PARAM NAME="CaptioningID" VALUE="">
<PARAM NAME="CursorType" VALUE="32512">
<PARAM NAME="CurrentMarker" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="DisplayMode" VALUE="1">
<PARAM NAME="DisplaySize" VALUE="4">
<PARAM NAME="EnableFullScreenControls" VALUE="0">
<PARAM NAME="InvokeURLs" VALUE="0">
<PARAM NAME="PreviewMode" VALUE="0">
<PARAM NAME="Rate" VALUE="1">
<PARAM NAME="SAMILang" VALUE="">
<PARAM NAME="SAMIStyle" VALUE="">
<PARAM NAME="SAMIFileName" VALUE="">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="TransparentAtStart" VALUE="1">
<PARAM NAME="VideoBorderWidth" VALUE="0">
<PARAM NAME="VideoBorderColor" VALUE="0">
<PARAM NAME="VideoBorder3D" VALUE="0">
<PARAM NAME="WindowlessVideo" VALUE="0">
</object>
--------------------
如果上述红色部分换成实际地址,例如:http://www.xxx.net/Data/Movie/举起手来_1.WMV
就能在任何环境下播放。
请问如何解决??急等。。。。。


------解决方案--------------------
你把
PARAM NAME="FILENAME" value="winplay.asp?num=<%=num%>&id=<%=id%>&dnum=<%=s%>">

改成
PARAM NAME="FILENAME" value="winplay.asp?num=<%=request("num")%>&id=<%=request("ID")%>&dnum=<%=request("s")%>&action=url">

这样试试看行不?
------解决方案--------------------
那你要把控件换成classid="clsid:6BF52A52-394A-11D3-B153-00C04F79FAA6" 
把这个
PARAM NAME="FILENAME" value="winplay.asp?num=<%=num%>&id=<%=id%>&dnum=<%=s%>">

替换成

PARAM NAME="url" value="winplay.asp?num=<%=num%>&id=<%=id%>&dnum=<%=s%>"