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.
|Feature||Chrome||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|General support||Not supported||Not supported||Not supported||Not supported||Not supported|
|Feature||Android||Chrome||Firefox Mobile (Gecko)||Firefox OS||IE Phone||Opera Mobile||Safari Mobile|
|General support||Not supported||Not supported||Not supported||1.2||Not supported||Not supported||Not supported|