>  기사  >  백엔드 개발  >  求教Wordpress中HTML5音频播放插件安装问题

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

WBOY
WBOY원래의
2016-06-06 20:37:081155검색

我在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标签吧,默认给出的配置项和可操作函数,很简单的使用,现在所谓的播放器,都是封装函数加一些效果

성명:
본 글의 내용은 네티즌들의 자발적인 기여로 작성되었으며, 저작권은 원저작자에게 있습니다. 본 사이트는 이에 상응하는 법적 책임을 지지 않습니다. 표절이나 침해가 의심되는 콘텐츠를 발견한 경우 admin@php.cn으로 문의하세요.