The WordPress XSPF Player Plugin

插件作者页面  www.boriel.com/plugins/the-wordpress-xspf-player-plugin/

简单的使用过程

下载(右键另存为)>>上传空间里>>后台启用>>在模板想出现的地方

放上代码<?PHP xspf_player::start('category-tag'); ?>

下面在工具里面的XSPF Player 里面添加音乐吧

首页刷新 看看自己的播放器吧 O(∩_∩)O~

I wanted my WordPress site to have some MP3 background music, but didn’t found any suitable plugin for it:

My webhosting server has little space, and cannot sTore tracks online. I just wanted a flash player or alike to be embedded into my pages which reads mp3 files via HTTP anywere on the internet. The XSPF web player does exactly that, and is licensed GPL.

I have developed this tiny plugin to allow WordPress pages to have background MP3 music embedding this player. You can see the player on the right sidebar. Just press play and music should start playing.

Features:

Works under Linux and Windows (and probably on every PC with a flash-compatible browser).
Plays local and remote MP3 music (HTTP)
Autostart playing and autorepeat if desired.
Song and Categories database MANAged from the Options menu
3 player modes selectables.
Track order defined by user.
Inline (on the fly) parameter customization. New!

Hope you enjoy it.

Samples:

[xspf]_start(FALSE, ‘order=1-10&mode=2&width=180’)[/xspf]
Slim mode. Just an horizontal bar. Clicking on the little arrow on the right jumps to the artists page (when available).

[xspf]_start(FALSE, ‘order=1-10&mode=3&width=180&height=100’)[/xspf]
Wide List mode. A list-box with the tracks. Clicking on the photo jumps to the artists page (when available).
[Download] Current version of XSPF Player plugin

To do:
A nice online tutorial. Please, contribute to the Wiki.

Changelog:

Version 3.4
* bugfix: Possible security vulnerability. XSPF Player setup could be changed by a CSRF / XSS attack. Fixed.
Version 3.3
+ Feature: URL and category description can now have up to 255 chars long.
+ Feature: Version displayed in config menu, and other cosmetics.
+ Feature: Better directory protection.
+ Feature: Button to CLEAR all SQL xspf tables.
* Bugfix: Category edition not shown when no tracks on database. Fixed.
Version 3.2
* Bugfix: When no default player mode selected, the player may not work. Fixed.
* Bugfix: The [XSPF] button does not work on WP 2.1. Fixed (Thanks, Renato Alves).
* Bugfix: Cleanup database songs tables when installing for first time.
+ Feature: Now it’s possible (and preferred) to use [XSPF] … [ /XSPF] instead of <xspf>…</xspf> tags.
Other: Everything is in one folder now (source code rearranged)

声明:本站所有文章,如无特殊说明或标注,均为本站原创发布。任何个人或组织,在未征得本站同意时,禁止复制、盗用、采集、发布本站内容到任何网站、书籍等各类媒体平台。如若本站内容侵犯了原著者的合法权益,可联系我们进行处理。