The default bug view has changed. See this FAQ.

B2G telephony: speakerEnabled does not work

RESOLVED FIXED in mozilla13

Status

()

Core
DOM: Device Interfaces
RESOLVED FIXED
5 years ago
5 years ago

People

(Reporter: oteo, Assigned: jaoo)

Tracking

Trunk
mozilla13
ARM
Gonk (Firefox OS)
Points:
---

Firefox Tracking Flags

(Not tracked)

Details

Attachments

(1 attachment)

(Reporter)

Description

5 years ago
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]"]
Duplicate of this bug: 725598
(Assignee)

Comment 2

5 years ago
Created attachment 595992 [details] [diff] [review]
v1

This patch fix an small problem ("gAudioManager.setForceUse is not a function") when enabling speakers on a call.
Assignee: nobody → josea.olivera
Status: UNCONFIRMED → ASSIGNED
Ever confirmed: true
Attachment #595992 - Flags: review?(philipp)
Comment on attachment 595992 [details] [diff] [review]
v1

Review of attachment 595992 [details] [diff] [review]:
-----------------------------------------------------------------

Good catch! r=me
Attachment #595992 - Flags: review?(philipp) → review+
(Please file telephony bugs in the Core :: DOM: Device Interfaces section next time, and mark them blocking the b2g-telephony meta bug. Both of those will ensure that the right kind of people are notified via email. Thanks! :))
Blocks: 699235
Component: General → DOM: Device Interfaces
OS: Mac OS X → Gonk
QA Contact: general → device-interfaces
Hardware: x86 → ARM
Summary: speakerEnabled does not work → B2G telephony: speakerEnabled does not work
https://hg.mozilla.org/mozilla-central/rev/40da5acfe838
Status: ASSIGNED → RESOLVED
Last Resolved: 5 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla13
You need to log in before you can comment on or make changes to this bug.