AudioContext.mozAudioChannelType

Non-standard
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.

The readonly 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.

It is a non-standard property, defined in the AudioChannels API; see Using the AudioChannels API for more details.

Syntax

JavaScript
var audioCtx = new AudioContext();
var myAudioChannelType = audioCtx.mozAudioChannelType;

You can only set the audio channel type of your AudioContext by using the following constructor:

JavaScript
var audioCtx = new AudioContext('ringer');

Value

A DOMString value.

Example

TBD

Specifications

The AudioChannels API has no official spec at the moment; see https://wiki.mozilla.org/WebAPI/AudioChannels for implementation details, WebIDL, etc.

Browser compatibility

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

See also

License

© 2016 Mozilla Contributors
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-us/docs/web/api/audiocontext/mozaudiochanneltype

API Audio AudioChannels AudioContext mozAudioChannelType NeedsExample Property Reference Web Audio API