How to play .amr file on a website?

一世执手 提交于 2019-11-28 07:57:09

问题


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


回答1:


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?



来源:https://stackoverflow.com/questions/27915454/how-to-play-amr-file-on-a-website

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!