M
M
Maxim2018-10-15 23:01:30
JavaScript
Maxim, 2018-10-15 23:01:30

Is it possible to autoplay audio in chrome?

I tried it through audio.play , autoplay does not work on loading in chrome, maybe there is such an opportunity or what script?

Answer the question

In order to leave comments, you need to log in

3 answer(s)
M
Maxim, 2018-10-16
@xiiicool

solution to this problem through iframe for chrome
for others,
delete the iframe if the person did not enter their chrome and also delete it so that there are no two audio
var isChrome = /Chrome/.test(navigator.userAgent) && /Google Inc/.test(navigator.vendor) ;
if(!isChrome){
$('#iframeAudio').remove()
}
else{
$('#playAudio').remove()

S
Stalker_RED, 2018-10-16
@Stalker_RED

Works?

V
Vyacheslav, 2018-10-27
@ZPmirov

Of course - it is possible - you can even play and - by clicking on the link as on - this page music.zpmirov.ru/blackstar but autoplay occurs if the page contains the code (audio) your link to the file (/audio)

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question