The future of JavaScript audio?

I teach children how to add audio to their games and web pages. I knew about the HTML5 API and am now learning about problems in different browsers (IE unexpectedly does not support WAV at all, etc.).

However, apparently, there is a new standard for web audio that I did not know about. Chrome fully supports it. Mozilla states the following about web audio and Firefox:

Firefox currently supports an incompatible, Mozilla-specific audio Data API, but it is marked as "obsolete" in favor of the W3C standard. Work began to support the new Web Audio API in Firefox.

caniuse.com reports support for the web audio API .

I generally do not mind that children use Google Chrome for development and sound that does not work in many other browsers. However, I do not want to teach them what will not be in other browsers in the future.

I also read about a possible alternative to Web Audio called MediaStreaming ... What future should I teach?

+5
source share
4 answers

If you only need to play audio files, I highly recommend using howler.js. It does not have tons of features, but it is very reliable and works well in browsers.

The web audio API is definitely the “future” of audio on the Internet, but it can be quite difficult, especially if you are trying to teach it to children.

0
source

, HTML5 Audio API. HTML5 <audio/>, .

DSP - API -. W3C, , , : http://www.w3.org/2011/audio/wiki/PubStatus

+3

, API - , Chrome, Safari Firefox. Opera webkit, , API -, . Internet Explorer .

+1

- , microsoft - api .

, , ? API - Chrome? , API, , , DSP, , javascript , , . , , , , , javascript . API -, DSP, .

I think it will take a lot of time anyway, since you can create a website that uses the web audio API, and this will be supported in many browsers and will not be randomly broken. But at the moment there is no other choice, so in the future I assume that more and more browsers will begin to support it.

0
source

All Articles