+ 6
How do I prevent more than one audio playing?
Need help!!! Edit: Sorry for that. Here's the code: https://code.sololearn.com/Wnj3iJnhBCEv/#html Edit2: My Goal: When the user plays a song while there is another song playing, it starts the song that the user selected / wants to play but pauses all of the other ones.
5 Respuestas
+ 3
Try using the JS pause() method. To see if either audio is playing, you can either use an if or while statement, or you can use an event listener.
Here's an example ( https://code.sololearn.com/Wjq3JTNqsS8U/?ref=app ). Hope that this helps.
+ 5
The code is now available. Sorry...
+ 4
put autoplay="false"; inside the <source> tag
+ 3
Thank you for your answer @Joe Catoe but it doesn't work the way I want it to work
- 1
The program enters the user during the morning and evening and the night and the program printing period in the hours of morning
can you help me The fastest speed