Audio Player 是一款博客变播客的 WordPress 的轻量级音乐播放器。它的使用非常简单,只要在文章或页面中插入指定音乐播放的代码就可以正常工作了。

  [audio:name_of_mp3_file.mp3]
  [audio:name_of_mp3_file1.mp3,name_of_mp3_file2.mp3,name_of_mp3_file3.mp3]
  [audio:http://www.somedomain.com/path/to/name_of_mp3_file.mp3]
  [audio:name_of_mp3_file.mp3|option1=value|option2=value]

Option Effect
autostart=yes The player will automatically open and start to play the track (default value is no)
loop=yes The track will be looped indefinitely (default value is no)
bg=0xHHHHHH Background colour option (where HHHHHH is a valid hexadecimal colour value such as FFFFFF or 009933)
leftbg=0xHHHHHH Left background colour
rightbg=0xHHHHHH Right background colour
rightbghover=0xHHHHHH Right background colour (hover)
lefticon=0xHHHHHH Left icon colour
righticon=0xHHHHHH Right icon colour
righticonhover=0xHHHHHH Right icon colour (hover)
text=0xHHHHHH Text colour
slider=0xHHHHHH Slider colour
loader=0xHHHHHH Loader bar colour
track=0xHHHHHH Progress track colour
border=0xHHHHHH Progress track border colour

Example:
[audio:name_of_mp3_file.mp3|autostart=yes|bgcolor=0x000000]

New install: this is the first time you install Audio Player on your WordPress blog
1、Download the plugin zip file
2、Extract the contents of the zip file to your local hard drive
3、Upload the audio-player folder to your WordPress site in the wp-content/plugins folder
4、The folder structure of your blog should look like this:
audio player
5、Log in to your WordPress admin and go to the Plugins section. You should now see Audio Player in the list of available plugins
6、Activate the plugin by clicking the activate link
7、Now go to the Settings section (Options for WordPress pre 2.5) and select Audio Player where you can configure the plugin 
 

 

© 活着的博客 - 李权辉的个人博客:人,终究是生活在现实之中,是为了活着而生活.