60e03e3dec
Adds base/sounds feature which allows other features to register a sound source under specified id. A new SoundsCollection component will then render corresponding HTMLAudioElement for each such sound. Once "setRef" callback is called by the HTMLAudioElement, this element will be added to the Redux store. When that happens sound can be played through the new 'playSound' action which will call play() method on the stored HTMLAudioElement instance. |
||
---|---|---|
.. | ||
components | ||
actionTypes.js | ||
actions.js | ||
constants.js | ||
functions.js | ||
index.js | ||
middleware.js | ||
reducer.js | ||
sounds.native.js | ||
sounds.web.js |