Howler.js: HTML5 first as option

Created on 10 Jul 2013  路  4Comments  路  Source: goldfire/howler.js

Hi, I'd like to assign self._webAudio to false when constructing Howl object.

The reason is that html5 audio is CORS tolerant and I'd like to play sounds from other domains without making an XHR request every time.

Most helpful comment

Setting html5 to true did solve the CORS issue in my case.

All 4 comments

This functionality is actually already available. When creating a new Howl object, set buffer to true and it will use HTML5 Audio. This is great for CORS and for large audio files that don't work as well in Web Audio.

:+1: It'd be great if this was documented though :-)

Setting html5 to true did solve the CORS issue in my case.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

rowild picture rowild  路  3Comments

Glutch picture Glutch  路  3Comments

kamkha picture kamkha  路  3Comments

st-h picture st-h  路  5Comments

sibelius picture sibelius  路  3Comments