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.

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

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');

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

Метки документа и участники

 Внесли вклад в эту страницу: fscholz, teoli, kscarfone, chrisdavidmills
 Обновлялась последний раз: fscholz,