在chrome和firefox(可能还有其他浏览器)中,音频链接不会呈现媒体控制器。例如。
[audio http://example.com/wp/wp-content/uploads/2011/09/file.mp3]
在Chrome中,查看页面源代码就地显示此代码:
<div id="mep_0" class="mejs-container" style="width: 400px; height: 30px; ">
<div class="mejs-inner"><div class="mejs-mediaelement">
<audio id="wp_mep_1" preload="none">
<object width="400" height="30" type="application/x-shockwave-flash" data="http://example.com/wp/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf">
<param name="movie" value="http://example.com/wp/wp-content/plugins/media-element-html5-video-and-audio-player/mediaelement/flashmediaelement.swf">
<param name="flashvars" value="controls=true&file=">
</object>
</audio></div><div class="mejs-layers"></div><div class="mejs-controls"></div><div class="mejs-clear"></div></div></div>
更新:在JS控制台中,我注意到一个错误:
mediaelement-and-player.min.js:36
Uncaught TypeError: Cannot read property \'url\' of undefined