Nếu bạn muốn nhúng nhạc vào Blog của mình? - Version 2.00
Hãy
download chương trình hát nhạc mini nàyĐăng
kí một free host nào đóUpload
cái chương trình hát nhạc này lênĐưa
nhạc lên free host hoặc săn trên NETTạo
một file playlist
{mos_ri:360,yahoo,blog}
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
Đă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.
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
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">
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 clickautoload : boolean value that makes the playlist load without the initial user
clickbuffer : 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 playersload_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 annotationtimedisplay : numerical value to show time counter; 0:off, 1:all, 2:elapsed,
3:duration, 4:countdownuseId3 : boolean value that forces id3 tag use in the slim player. Can be
helpful, but not recommendedvolume_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:
Post a Comment