问题描述
我已经尝试了下面的代码,但没有工作?有没有人在网站上播放amr文件?
< audio id =audiosrc =upload / hello2.amrpreload =auto控制静音循环自动播放>< /音频>
我已经尝试了下面的代码,但没有工作?有没有人在网站上播放amr文件?
< audio id =audiosrc =upload / hello2.amrpreload =auto控制静音循环自动播放>< /音频>
播放器可以在web上播放amr文件 解决方案
AMR文件不是html5音频标签支持的音频文件之一。请参阅下面的列表以获取支持的音频格式:
我建议您将amr文件转换为mp3或ogg,然后上传并在服务器上播放。
您的代码指定了一个 mp3 文件。你确定你把amr文件?
i have tried below code but not working ? does anyone play amr files in website
<audio id="audio" src="upload/hello2.amr"
preload="auto" controls muted loop autoplay>
</audio>
any plugin or player which can play amr file in web
AMR file is not one of the supported audio files that html5 audio tag supports. Please see the list below for supported audio formats:
http://en.wikipedia.org/wiki/HTML5_Audio#Supported_audio_coding_formats
I would recommend you convert your amr file to mp3 or ogg and then upload it and play it on your server.
original answer:
Your code specifies an mp3 file. Are you sure you put in the amr file?
这篇关于如何在网站上播放.amr文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!