This feature is non-standard and is not on a standards track. Do not use it on production sites facing the Web: it will not work for every user. There may also be large incompatibilities between implementations and the behavior may change in the future.
mozAudioChannelType property of the
AudioContext interface can be used to set the audio channel that the sound playing in an audio context element will play in, on a Firefox OS device.
var audioCtx = new AudioContext(); var myAudioChannelType = audioCtx.mozAudioChannelType;
You can only set the audio channel type of your AudioContext by using the following constructor:
var audioCtx = new AudioContext('ringer');
The AudioChannels API has no official spec at the moment; see https://wiki.mozilla.org/WebAPI/AudioChannels for implementation details, WebIDL, etc.
|Firefox Mobile (Gecko)
- App permissions for Firefox OS
- Using the AudioChannels API
© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.