How to play .amr file on website?

I tried the code below but didn't work? does anyone play amr files on a website

<audio id="audio" src="upload/hello2.amr" preload="auto" controls muted loop autoplay> </audio> 

any plug-in or player that can play an amr file on the network

+5
source share
1 answer

The AMR file is not one of the supported audio files supported by html5 audio text. 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 download it and play it on my server.


original answer:

The code indicates the mp3 file. Are you sure you installed the amr file?

+2
source

Source: https://habr.com/ru/post/1210951/


All Articles