Pls why is the audio in this code taking time to play even after I used onload function it still stops at some part | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

Pls why is the audio in this code taking time to play even after I used onload function it still stops at some part

https://code.sololearn.com/W9htOqwoPmFa/?ref=app

23rd Jul 2022, 11:52 AM
Coder X
Coder X - avatar
2 Answers
+ 2
Chromium browsers do not allow autoplay. Most mobile browsers will disable auto-playing audio/videos in order to preserve bandwidth & battery and to prevent performance issues. User has to interact with webpage.
24th Jul 2022, 4:39 AM
Chris Coder
Chris Coder - avatar
0
Chris Coder Thanks for the clarification
24th Jul 2022, 10:09 PM
Coder X
Coder X - avatar