I am working on a web application and I have one compatibility problem with Apple devices & Safari on PCs.
Html5 audio tag:
<audio controls> <source src="/audio/en/file.mp3" type="audio/mpeg"> <source src="/audio/en/file.ogg" type="audio/ogg"> Your browser does not support the audio element. </audio>
- I just want to play an audio file with basic controls.
- The previous code works perfectly on Chrome, Opera, Firefox (Windows & Android devices).
- But controlers do no appear with Safari (tested with the latest version on PC, iPad & iPad mini).
- Audio player have a grey background with only "play/pause" function.
- Here is a screenshot that describes my problem :
Thanks.