ReadonlyallowedReturns a list of audio channels that are allowed to be used.
ReadonlyheadphonesIndicates whether headphones are currently plugged in.
Fired when the headphones status changes (plugged in or removed).
ReadonlytelephonyIndicates whether the telephony speaker is currently enabled.
Indicates which audio channel's volume is currently being controlled by the hardware volume keys.
The addEventListener() method of the EventTarget interface sets up a function that will be called whenever the specified event is delivered to the target.
Optionaloptions: boolean | AddEventListenerOptionsThe dispatchEvent() method of the EventTarget sends an Event to the object, (synchronously) invoking the affected event listeners in the appropriate order.
The removeEventListener() method of the EventTarget interface removes an event listener previously registered with EventTarget.addEventListener() from the target.
Optionaloptions: boolean | EventListenerOptions
The AudioChannelManager interface allows managing the audio channels of the device. It provides access to volume control and headphone status.
Permissions
audio-channel-telephony, audio-channel-ringer, audio-channel-alarm, audio-channel-notification, audio-channel-content
Preference
media.useAudioChannelAPI
See
https://wiki.mozilla.org/WebAPI/AudioChannels