Skip to content

HB Audio Player荒野无灯修改版

2011 八月 20
by 荒野无灯

HB Audio Player的默认支持的格式如下(这和WP audio player是相同的):

1
2
3
[audio:http://www.yourdomain.com/path/to/your_mp3_file.mp3]
[audio:your_mp3_file.mp3]
[audio:mp3_file_1.mp3,mp3_file_2.mp3|titles=Title 1,Title 2|artists=Artist 1,Artist 2]

我WP博客以前一直使用的短代码格式是:

1
[audio]mp3文件URL[/audio]

这与我之前的短代码不符,如从WP迁移过来则会遇到麻烦。因此,兼容、统一,是最合适不过的办法。于是修改了下由Colin Seymour 从WP Audio Player Port过来的HB Audio Player.
修改版的HB Audio Player支持的格式如下:

1
2
3
4
5
[audio] http://www.yourdomain.com/path/to/your_mp3_file.mp3  [/audio]

[audio titles=Title | artists= Artist ] http://www.yourdomain.com/path/to/your_mp3_file.mp3  [/audio]

[audio titles=Title 1,Title 2 | artists=Artist 1,Artist 2 ] mp3_file_1.mp3,mp3_file_2.mp3 [/audio]

另外,此修改版修订了一个swfobject脚本在IE9下无法显示播放器的BUG (解决办法是用了github上最新版的swfobject脚本)。
分别对应以上的三种格式。

喜欢这篇文章吗?

请订阅本站 RSS feed填写您的邮件地址,订阅我们的精彩内容:,欢迎点击这里捐赠以支持荒野无灯转播到腾讯微博 转播到腾讯微博

作者:荒野无灯
出处:Hacklog【Hacklog】

声明: 本站遵循 署名-非商业性使用-相同方式共享 3.0 共享协议. 转载请注明转自Hacklog【荒野无灯weblog】

本文链接: http://ihacklog.com/?p=4727

Leave a Reply

Allowed Tags - You may use these HTML tags and attributes in your comment.

<a href="" title=""> <abbr title=""> <acronym title=""> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <q cite=""> <strong>

 :wink:  :-|  :-x  :twisted:  :)  8-O  :(  :roll:  :-P  :oops:  :-o  :mrgreen:  :lol:  :idea:  :-D  :evil:  :cry:  8)  :arrow:  :-?  :?:  :!:

Note: You may use basic HTML in your comments. Your email address will not be published.

Subscribe to this comment feed via RSS