Cannot play sound in WEB | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 4

Cannot play sound in WEB

Somebody help me While trying to play a sound, for example sound.play() it is showing an error something like Uncaught (in promise) NotAllowedError: play() can only be initiated by a user gesture Help me And Thanks in advance

16th Apr 2019, 2:47 PM
LoystonLive
LoystonLive - avatar
1 Answer
0
Could you please show me your code
19th Apr 2019, 2:07 AM
Juan David Padilla Diaz
Juan David Padilla Diaz - avatar