首页 > 求教Wordpress中HTML5音频播放插件安装问题

求教Wordpress中HTML5音频播放插件安装问题

我在Wordpress中用了HTML5主题,无法显示音频,但是找不到适合的音频播放插件(Wordpress插件中心找到的一些HTML5的音频播放插件没用)。
几番寻找找到了这个:http://kolber.github.io/audiojs/但是我不会安装,也不知道会不会有用。

It uses native <audio>where available and an invisible flash player to emulate <audio>for other browsers. It provides a consistent html player UI to all browsers which can be styled used standard css.
Download audio.js

下载之后便不会安装了

Installation

Put audio.js, player-graphics.gif & audiojs.swf in the same folder.
Include the audio.js file:
<script src="/audiojs/audio.min.js"></script> Initialise audio.js: <script> audiojs.events.ready(function() { var as = audiojs.createAll(); }); </script>

Then you can use

<audio src="/mp3/juicy.mp3" preload="auto" />

请教如何安装和使用。
如有更好的插件,希望不吝推荐,感激不尽!!


直接写audio标签吧,默认给出的配置项和可操作函数,很简单的使用,现在所谓的播放器,都是封装函数加一些效果

【热门文章】
【热门文章】