0
<audio controls>
<source src="/storage/emulated/0/h.mp3" type="audio/mpeg">
</audio>
这里是html代码。它不工作。请帮我解决这个问题。播放音频无法在科尔多瓦工作
<audio controls>
<source src="/storage/emulated/0/h.mp3" type="audio/mpeg">
</audio>
这里是html代码。它不工作。请帮我解决这个问题。播放音频无法在科尔多瓦工作
这个问题每年都会被问到。它与某些设备上的许可有关。
试试类似this的插件。
或破产media API
The Media object provides the ability to record and play back audio files on a device.
var media = new Media(src, mediaSuccess, [mediaError], [mediaStatus]);
Note: The current implementation does not adhere to a W3C specification for media capture, and is provided for convenience only. A future implementation will adhere to the latest W3C specification and may deprecate the current APIs.
参数
方法
我将index.js文件中的音频链接改为/storage/emulated/0/h.mp3。但它不起作用。 – unknown
请阅读媒体API,您将得到如何给src。 –