哪位高人有做过网页上在线播放amr的代码???下面的是在线播放mp3的代码,分享一下!!
哪位高人有做过网页上在线播放amr的代码???下面的是在线播放mp3的代码,分享一下!!
<OBJECT id=mp1
codeBase=http://activex.microsoft.com/activex/controls/mplayer/en/nsmp2inf.cab#Version=6,4,5,715
type=application/x-oleobject height=25
standby="Loading Microsoft Windows Media Player components..."
width="150"
classid=CLSID:22d6f312-b0f6-11d0-94ab-0080c74c7e95>
<PARAM NAME="AnimationAtStart" VALUE="0">
<PARAM NAME="ShowStatusBar" VALUE="0">
<PARAM NAME="ShowControls" VALUE="-1">
<PARAM NAME="AutoStart" VALUE="-1">
<PARAM NAME="AutoRewind" VALUE="-1">
<PARAM NAME="FileName" VALUE=" <%=LogoUrl%>/ <%=rsnews("FirstImageName")%>">
<PARAM NAME="ShowDisplay" VALUE="0">
<PARAM NAME="SendPlayStateChangeEvents" VALUE="-1">
<PARAM NAME="ClickToPlay" VALUE="0">
<PARAM NAME="ShowTracker" VALUE="0">
<PARAM NAME="ShowPositionControls" VALUE="0">
<PARAM NAME="DefaultFrame" VALUE="">
<PARAM NAME="TransparentAtStart" VALUE="0">
</OBJECT>
------解决方案--------------------
<object id="NSPlay" width=400 height=300 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="<%=request.getContextPath()%>/upload/${param.filename}">
<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="100">
<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>
这个可以支持多种格式的,看看是不是想要的