Hacker News new | ask | show | jobs
by ippa 5272 days ago
HTML5 audio is kind of weaksauce atm yes. To support all major browsers I need to ship both oggs and mp3s for example.

Jaws creates instances of Audio() for each sound, loading them by setting the src-attribute and listening for the canplay event before making the asset as fully loaded.

Just google the Audio-tag, you have play(), pause() etc.