navigator.b2g.audioChannelManager
#
DescriptionThe AudioChannelManager interface of the AudioChannels API includes features for managing your device's audio channels, including setting what channel's volume to affect when the volume buttons are pressed inside a particular app.
#
MethodsNote: Inherits methods from its parent, EventTarget
#
PropertiesNote: Inherits methods from its parent, EventTarget
AudioChannelManager.headphones
      A boolean that indicates whether headphones are plugged into the device.
AudioChannelManager.telephonySpeaker
      A boolean that allows you to set whether the "telephony" audio channel should be played out of the device's speakers.
AudioChannelManager.volumeControlChannel
      A DOMString that allows you to set which audio channel should have its volume changed when you press the device's hardware volume controls.
#
Event handlersAudioChannelManager.onheadphoneschange
      Fired when the device's headphones are plugged in or unplugged.
#
ExamplesIn the following simple example, we use the navigator.b2g.audioChannelManager property to access the app's AudioChannelManager object, first to do some rudimentary feature detection, and then to set value of the AudioChannelManager.volumeControlChannel property, based on a received variable.