4.4.07

Nhúng nhạc vào Blog - Version 2.00



ImageNếu bạn muốn nhúng nhạc vào Blog của mình? - Version 2.00







  1. Hãy

    download chương trình hát nhạc mini này





  2. Đăng

    kí một free host nào đó





  3. Upload

    cái chương trình hát nhạc này lên





  4. Đưa

    nhạc lên free host hoặc săn trên NET





  5. Tạo

    một file playlist



{mos_ri:360,yahoo,blog}





  1. Hãy download chương trình

    hát nhạc mini này



Bạn hãy download ở đây: http://files.myopera.com/TinySmile/files/XSPF_PLAYER.zip



Hoặc bạn có thể vào google tìm với từ khóa xspf_player







  1. Đăng kí một free host nào đó



Bạn có thể vào đây tham khảo danh sách http://www.0php.com/free_PHP_hosting.php



Đưa nhạc lên free host hoặc săn trên NET



Chú ý chương trình chỉ hỗ trợ định dạng mp3. Nên bạn cần

chuyển các định dạng khác về dạng mp3.







  1. Tạo một

    file playlist



Tham khảo mẫu



<?xml version="1.0" encoding="UTF-8"?>

<playlist version="0" xmlns="http://xspf.org/ns/0/">

<trackList>



<track>  



<location>http://yourdomain.com/music/Never Is Enough.mp3</location>  



<creator>Barenaked Ladies</creator>  



<title>Never Is Enough</title>  



<metarel="http://geekkid.net/type/">audio</meta>  



</track>  



<track>  



<location>http://yourdomain.com/music/E-Pro.mp3</location>  



<creator>Beck</creator>  



<title>E-Pro</title>  



</track>  



<track>  



<location>http://yourdomain.com/jukebox/xplaylist.xml</location>  



<creator>The Who</creator>  



<title>Babba o' Riley</title>  



</track>  



</trackList>

</playlist>
Upload

cái chương trình hát nhạc này lên và playlist này lên









  1. Chèn code html vào blog của mình:



<embed type="application/x-shockwave-flash"

src="http://tên domain bạn đăng kí/xspf_player.swf?

playlist_url=http://tên domain bạn đăng kí/playlist.xspf

height="300" width="525">






Các tham số tùy chọn khác truyền vào lúc

gọi file flash là:







  • playlist_url : the url of the xspf file to load





  • alpha : percent of color change, only works with custom color





  • alphabetize : boolean value to alphabetize playlist





  • autoplay : boolean value that makes the playlist load and the music start without

    the initial user click





  • autoload : boolean value that makes the playlist load without the initial user

    click





  • buffer : seconds to preload video before playing, exclude for automatic





  • color : six digit hex value to change the players color





  • gotoany : boolean value that forces travel to unknown URLs





  • image : url for a jpg image that is shown when autoplay is off





  • infourl : global info url for all songs, replaces playlist info urls





  • loadurl : url linking to a text file containing all variables. cuts down on html

    coding and file sizes, one file can be used by many players





  • load_message : message displayed after autoload





  • main_image : global image url, replaces all playlist images





  • mainurl : right-click "about" url





  • no_continue : boolean value to turn off automatic song changing





  • player_title : the text to replace the players default's





  • repeat : boolean value to set repeat





  • repeat_playlist : boolean value to repeat the playlist





  • setup : boolean value to turn on special manager features such as auto-update.

    more to come.





  • shuffle : boolean value to set shuffle





  • start_track : track number for beginning track





  • statsurl : url to an external script that can collect POST values. Can collect

    playSong and annotation





  • timedisplay : numerical value to show time counter; 0:off, 1:all, 2:elapsed,

    3:duration, 4:countdown





  • useId3 : boolean value that forces id3 tag use in the slim player. Can be

    helpful, but not recommended





  • volume_level : starting volume level



    The music player can also be used to play single mp3 files instead of

    playlists, the parameters are:





  • song_title : the text to replace the players default's





  • song_url : the url of the single mp3 you want to play



 Ví dụ:



<embed

type="application/x-shockwave-flash"

src="http://tinysmile.kwikphp.com/xspf_player.swf?


playlist_url=http://tinysmile.kwikphp.com/playlist.xspf&

buffer=15&main_image=


http://tinysmile.kwikphp.com/1ca8.jpg&load_message=

Welcom%20to%20my%20blog&autoplay=true&repeat_playlist=true"

allowscriptaccess="none" align="middle" height="300" width="525">

No comments: