Please note, this is a STATIC archive of website developer.mozilla.org from 03 Nov 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Revision 906217 of Sound.jsm

  • Revision slug: Mozilla/Add-ons/Firefox_for_Android/API/Sound.jsm
  • Revision title: Sound.jsm
  • Revision id: 906217
  • Created:
  • Creator: mcomella
  • Is current revision? No
  • Comment Remove editorial review – article is simple

Revision Content

Sound.jsm is not shipped with Fennec – it must be downloaded from Github and packaged with your addon.

The Sound.jsm JavaScript code module offers the ability to play simple sounds using the HTML 5 audio APIs. For basic usage, see the Github readme.

For a rough example on its use (note: the Sound.jsm file must be added to the project), see here.

Revision Source

<div class="note">Sound.jsm is not shipped with Fennec – it must be downloaded from <a href="https://github.com/mozilla/firefox-for-android-addons">Github</a> and packaged with your addon.</div>

<p>The <code>Sound.jsm</code> JavaScript code module offers the ability to play simple sounds using the HTML 5 audio APIs. For basic usage, see the <a href="https://github.com/mozilla/firefox-for-android-addons/tree/master/modules#soundjsm">Github readme</a>.</p>

<p>For a rough example on its use (note: the Sound.jsm file must be added to the project), see <a href="https://github.com/mcomella/sound-jsm-test">here</a>.</p>
Revert to this revision