![]() ![]() Tip: Use the controls property to display. How do you do that with JS/HTML5 I saw this article, but even with their example, it doesn't really work Sometimes I do hear that bird, but only for a short time, and I can't get it to work anymore then. Tip: This method is often used together with the pause() method. Playing sound notifications using Javascript I'm making a game in JS, and I need a proper way to play a sound when something happens. If you need more functionality, I used the howler.js library and found it simple and useful. The play() method starts playing the current audio. ![]() ![]()
0 Comments
Leave a Reply. |