你可以参考 开源的java版 mp3 

解决方案 »

  1.   

    http://topic.csdn.net/u/20070327/18/28916acc-fa10-4ef6-9cd6-59aa92ebf923.html这个上面有个例子
      

  2.   

    使用这个标签:<OBJECT id="mediaPlayerObject" style="WIDTH: 200px; HEIGHT: 68px" 
    type="application/x-oleobject" border="0" classid="CLSID:6BF52A52-394A-11d3-B153-00C04F79FAA6">
    <PARAM NAME="URL" VALUE="">
    <PARAM NAME="rate" VALUE="1">
    <PARAM NAME="balance" VALUE="0">
    <PARAM NAME="currentPosition" VALUE="0">
    <PARAM NAME="defaultFrame" VALUE="">
    <PARAM NAME="playCount" VALUE="1">
    <PARAM NAME="autoStart" VALUE="-1">
    <PARAM NAME="currentMarker" VALUE="0">
    <PARAM NAME="invokeURLs" VALUE="-1">
    <PARAM NAME="baseURL" VALUE="">
    <PARAM NAME="volume" VALUE="80">
    <PARAM NAME="mute" VALUE="0">
    <PARAM NAME="uiMode" VALUE="full">
    <PARAM NAME="stretchToFit" VALUE="-1">
    <PARAM NAME="windowlessVideo" VALUE="0">
    <PARAM NAME="enabled" VALUE="-1">
    <PARAM NAME="enableContextMenu" VALUE="false">
    <PARAM NAME="fullScreen" VALUE="0">
    <PARAM NAME="SAMIStyle" VALUE="">
    <PARAM NAME="SAMILang" VALUE="">
    <PARAM NAME="SAMIFilename" VALUE="">
    <PARAM NAME="captioningID" VALUE="">
    <PARAM NAME="enableErrorDialogs" VALUE="0">
    <param name="ShowControls" value="0">
    </OBJECT>
    它提供了一些方法,如:var objPlayer = document.getElementById("mediaPlayerObject");//播放器对象
    objPlayer.URL = "要播放的文件地址";
    objPlayer.controls.play();//开始播放
      

  3.   

    <PARAM NAME="URL" VALUE="">
    这个地方填什么啊?
      

  4.   

    http://blog.csdn.net/facepp/archive/2008/06/04/2511730.aspx连播已经实现,
    WMP中播放状态判断问题
    PlayStateChange 事件表示Media Player的播放状态已经改变,Media Player可能的状态有:
    0 播放已经停止(mpStopped)
    1 播放暂停(mpPaused )
    2 正在播放(mpPlaying)
    3 正在等待流开始(mpWaiting)
    4 向前搜索(mpScanForward)
    5 向后搜索(mpScanReverse)
    6 向前跳跃(mpSkipForward)
    7 向后跳跃(mpSkipReverse)
    8 流已经关闭(mpClosed)
    用JavaScript处理该事件的方法为:<script language="javascript" for="MediaPlayerObject" event="playStateChange(NewState)">
      switch (NewState)
    {
            case 1:
                    //alert("");
                    break;
            case 2:
                    //alert("Paused"); 
                    break;
            case 3:
                    //alert("Playing");
                    break;  
             case 8:
                    //alert("stopped");
                    setTimeout("showMusic();",1000);   break;     
            default:
                    //alert(NewState.toString());
                    break;
    }
    </script>不过还是掌握不好播放器的状态, 自己想添加个初始,上一曲,下一曲,没成功,谁能帮下哈