Closed Bug 725598 Opened 12 years ago Closed 12 years ago

speakerEnabled does not work

Categories

(Core :: General, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED DUPLICATE of bug 725599

People

(Reporter: oteo, Unassigned)

Details

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_7_2) AppleWebKit/534.51.22 (KHTML, like Gecko) Version/5.1.1 Safari/534.51.22

Steps to reproduce:

Trying to activate/deactivate the speaker in Samsung Galaxy SII 


Actual results:

Setting the attribute navigator.mozTelephony.speakerEnabled either to true or false we get the following errors in the log:

E/GeckoConsole( 6203): [JavaScript Error: "uncaught exception:
[Exception... "'[JavaScript Error: "gAudioManager.setForceUse is not a
function" {file:
"jar:file:///system/b2g/omni.ja!/components/RadioInterfaceLayer.js" line:
419}]' when calling method: [nsIRadioInterfaceLayer::speakerEnabled]"
nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"
location: "JS frame :: http://localhost:6666/Telephony/script/dialer.js ::
<TOP_LEVEL> :: line 579"  data: yes]"]
E/GeckoConsole( 6203): [JavaScript Error: "uncaught exception:
[Exception... "'[JavaScript Error: "gAudioManager.setForceUse is not a
function" {file:
"jar:file:///system/b2g/omni.ja!/components/RadioInterfaceLayer.js" line:
419}]' when calling method: [nsIRadioInterfaceLayer::speakerEnabled]"
nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"
location: "JS frame :: http://localhost:6666/Telephony/script/dialer.js ::
<TOP_LEVEL> :: line 579"  data: yes]"]
E/GeckoConsole( 6203): [JavaScript Error: "uncaught exception:
[Exception... "'[JavaScript Error: "gAudioManager.setForceUse is not a
function" {file:
"jar:file:///system/b2g/omni.ja!/components/RadioInterfaceLayer.js" line:
419}]' when calling method: [nsIRadioInterfaceLayer::speakerEnabled]"
nsresult: "0x80570021 (NS_ERROR_XPC_JAVASCRIPT_ERROR_WITH_DETAILS)"
location: "JS frame :: http://localhost:6666/Telephony/script/dialer.js ::
<TOP_LEVEL> :: line 579"  data: yes]"]
Status: UNCONFIRMED → RESOLVED
Closed: 12 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.