【教學】 Flash MP3 Player  - =☆EG分享樂園☆= - udn部落格
=☆EG分享樂園☆=
作家:─=☆EG☆=─
文章分類
    Top
    【教學】 Flash MP3 Player 
    2007/03/14 14:00:50
    瀏覽:4431
    迴響:1
    推薦:4
    引用0

    使用 Flash MP3 Player 播放多首音樂 簡易版

      Flash MP3 Player 設定教學:

    1. 首先先下載(右鍵另存新檔) mp3player.wmv (主播放器) 和 mp3player.xml(音樂曲目檔)
      下載完成後,使用記事本(notepad.exe)開啟mp3player.xml (此檔不得任意改檔名)


       ※注意只能使用MP3音樂檔※

      音樂清單(在記事本中)修改方式如下:
      說明
      <?xml version="1.0" encoding="UTF-8"?>
      <player showDisplay="yes" showPlaylist="yes" autoStart="no">
      <song path="mp3音樂網址" title="音樂顯示名稱">
      <song path="mp3音樂網址" title="音樂顯示名稱">
         :
         :
         :
      </player>
        
      1. autoStart="參數"

        參數設為yes即是自動播放。
        參數設為no即是不自動播放。
        參數設為random即是隨機自動播放。
         
      2. <song path="mp3音樂網址" title="音樂顯示名稱">
        是紀錄音樂項目的地方。
        加上幾行<song path=.......>就能撥幾首音樂。(沒有數量限制)

      範例


      <?xml version="1.0" encoding="UTF-8"?>
      <player showDisplay="yes" showPlaylist="yes" autoStart="no">
      <song path="http://gene7299.castpost.com/14.mp3" title="MY HEART WILL GO ON" />
      <song path="http://gene7299.castpost.com/15.mp3" title="HYMM TO THE SEA" />
      </player>

      這個範例即是不要自動播放(no),因為加上兩行<song path...>所以可以撥兩首音樂。
    2. 改完請儲存檔案。

       
       

    3. 接著把mp3player.wmv(不用修改) 和已修改好的mp3player.xml上傳到你的網頁空間上(光有播放器不行吧.音樂目錄檔也要傳喔)
      也就是說mp3player.wmv與mp3player.xml都上傳才算完成。

      (注意:檔案必須放在相同目錄,不同目錄會讀取不到音樂曲目檔的。所謂相同目錄是指兩個網址來比較,前面網址http://xxx.xxx.xxx.xxx/xx/xx/ 都一樣,只有後面檔名http://xxx.xxx.xxx.xxx/xx/xx/zz.wmv 不一樣。)

       
    4. 上傳完畢,最重要的動作,就是把mp3player.wmv的網址填入影音語法。
      <embed src="http://xxx.xxx.xxx.xxx/.wmvxx/xx/mp3player"  type="application/x-shockwave-flash" wmode="transparent" width=150 height=200>


      之後mp3player.wmv會顯示主播放器並自動讀取mp3player.xml裡的音樂檔播放。


       
    5. 但如何得到mp3player.wmv的網址和mp3音樂網址 ?  請繼續往下看 
       

    Flash MP3 Player相關檔案下載:(10/10修改檔案)

    FLASH播放器 http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player.wmv (需放在網路上)
    XML音樂清單
    http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player.xml (需放在網路上)
    FLASH播放器
    http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player.swf (未改副檔名)
    FLASH原始檔
    http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player.fla

    各種顏色Flash MP3 Player下載: (音樂目錄檔mp3player.xml不需要改檔名)

    紅:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player_red.wmv
    橙:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player_orange.wmv
    黃:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player_yellow.wmv
    綠:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player_green.wmv
    藍:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player.wmv
    紫:http://aliang-shy.myweb.hinet.net/data/msnspaces/mp3player_purple.wmv


    所有檔案一次下載點: http://myurl.com.tw/2jdp/player.zip

     

    此外,EG推薦大家可以到*hao123强力音樂搜索器*找你想要的音樂MP3檔!

    不知...EG這樣簡化一點~大家有沒有比較好懂?!

    如想看詳細教學請至♠ MSN 能量魔法 ♠ (資料來源)

    或到蘋果屋 Apple's House
      


    EG 2005/11/3 ---2007/04/15修改


    引用自♠ MSN 能量魔法 ♠ 

    回應
    迴響(1) :
    1樓. 大牛
    2008/07/21 02:46
    請問一下
    在要貼上網站那裡是不是寫錯了@@

    怎麼不能用?

    懇請大大幫忙

    耶~哪裡寫錯?@@?

    ─=☆EG☆=─ 於 2008/07/24 13:53回覆

    我改天再重寫一次好了!

    要不然你先去看apple's house的教學^^

    寫得很詳細!!

    http://popo516.myweb.hinet.net/lost_heart/b/musicplayer/flashmp3player.htm

    ─=☆EG☆=─ 於 2008/07/24 14:02回覆
    發表迴響

    會員登入