AudioChannelManager.telephonySpeaker
Important: This property is not currently supported in any browser, including Firefox OS, but will be in a version soon.
The telephonySpeaker
property of the AudioChannelManager
interface returns a Boolean
that allows you to set whether the "telephony" audio channel should be played out of the device's speakers.
Syntax
JavaScript
Copy Code
var myTelephonySpeakerValue = navigator.mozAudioChannelManager.telephonySpeaker; navigator.mozAudioChannelManager.telephonySpeaker = true;
Value
A Boolean
value.
Example
An example will be included as soon as this property is supported.
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 | No support | No support | No support | No support | No support |
Feature | Android | Chrome | Firefox Mobile (Gecko) | Firefox OS | IE Phone | Opera Mobile | Safari Mobile |
---|---|---|---|---|---|---|---|
General support | No support | No support | No support | No support | No support | No support | No support |
See also
- App permissions for Firefox OS
- Using the AudioChannels API
navigator.mozAudioChannelManager
HTMLMediaElement
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/audiochannelmanager/telephonyspeaker