+ 7

HTML5 - <audio> tag?

Why when I put an <audio> tag on a page via a computer, the music is heard in the background, and when does the same code run on a mobile phone is not heard?

31st Oct 2018, 9:43 PM
Marko Jovanovic
Marko Jovanovic - avatar
1 Antwort
+ 10
Unfortunately Google Chrome forbids the audio to be played in background without explicit consent by the user. There are some tricky way to do it tho, but most of them may be considered as bugs and may be solved soon by the Google team. Never rely your whole application on software bugs.
31st Oct 2018, 10:15 PM
Maz
Maz - avatar