Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

<audio> tag for mp3 doesn't really work on Chrome

First of all here is the website I'm currently coding :

http://www.clairereviens.com/

On each button, there is one tag for one mp3 sample. All the mp3 are playing perfectly with Safari, but with Chrome only a few buttons are working.

I tested with type audio/mp3 and audio/mpeg, but it doesn't change. Thanks guys

like image 260
alexandresecanove Avatar asked Sep 21 '25 07:09

alexandresecanove


1 Answers

Its too late but this might help anyone in future.Both audio of mp3 quality(128 and 320 Kbps) and video of mp4(in iFrame) are working fine in the google chrome version 55.0.2883.87.

<audio controls="controls" src="mydriveaddress\test.mp3" autoplay>
</audio>
<iframe src="mydriveaddress\test2.mp4" height="300" width="300" allowfullscreen=""></iframe>
like image 103
Hameed Syed Avatar answered Sep 22 '25 21:09

Hameed Syed