Home  >  Article  >  Backend Development  >  求教Wordpress中HTML5音频播放插件安装问题

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

WBOY
WBOYOriginal
2016-06-06 20:37:081159browse

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

It uses native <audio></audio>where available and an invisible flash player to emulate <audio></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"> Initialise audio.js: <script> audiojs.events.ready(function() { var as = audiojs.createAll(); }); </script>

Then you can use wherever you like in your HTML:

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

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

回复内容:

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

It uses native <audio></audio>where available and an invisible flash player to emulate <audio></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"> Initialise audio.js: <script> audiojs.events.ready(function() { var as = audiojs.createAll(); }); </script>

Then you can use wherever you like in your HTML:

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

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

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

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn