Closed
Bug 815322
Opened 12 years ago
Closed 12 years ago
Phone rings on incoming call will pause audio
Categories
(Firefox OS Graveyard :: Gaia::System, defect, P1)
Tracking
(blocking-basecamp:+, firefox18 fixed, firefox19 fixed)
People
(Reporter: mtreese, Assigned: mchen)
References
Details
(Keywords: feature)
Attachments
(2 files, 4 obsolete files)
8.37 KB,
patch
|
mchen
:
review+
|
Details | Diff | Splinter Review |
8.34 KB,
patch
|
mchen
:
review+
|
Details | Diff | Splinter Review |
USER-SOUND-014 As a user my phone will ring when I receive an incoming call. The ringer will pause and mute any audio content currently playing.
Updated•12 years ago
|
Component: Gaia → Gaia::System
Once bug 805333 is fixed, all that's needed here is to use mozaudiochannel="ringer" on the <audio> element used to play the incoming-call sound.
Depends on: 805333
Comment 2•12 years ago
|
||
AFAIW we don't have ringer channel type now. Or we have but no effect now. Marco knows more than me.
Currently gaia doesn't specify ringer channel to dialer's ringtone.
Assignee | ||
Comment 3•12 years ago
|
||
Step 1. I take this bug first for adding new audio channel type called ringer.
Step 2. Once 805333 is completed then add ringer into priority list.
Assignee: nobody → mchen
Updated•12 years ago
|
Target Milestone: --- → B2G C2 (20nov-10dec)
Depends on: 815445
Comment 5•12 years ago
|
||
Marco, what's your estimate for how long this will take to fix once bug 805333 lands?
Assignee | ||
Comment 6•12 years ago
|
||
(In reply to Dietrich Ayala (:dietrich) from comment #5)
> Marco, what's your estimate for how long this will take to fix once bug
> 805333 lands?
It would be 2 ~ 3 days after bug 805333 landed.
Assignee | ||
Comment 7•12 years ago
|
||
1. To add a new channel type called ringer (https://etherpad.mozilla.org/audio-bug80533), and the priority of this type is just lower then publicnotification only.
2. The next part will be added it into logic of AudioChannelService.
Attachment #685996 -
Flags: review?(kinetik)
Updated•12 years ago
|
Attachment #685996 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 8•12 years ago
|
||
1. According to bug 817043, it changed the support of mozAudioChannelType to ParseAttribute(). So rebase the ringer codes to this version.
2. Add ringer logic into AudioChannelService. (No impact on AudioChannelServiceChild even it is not landed.)
Attachment #685996 -
Attachment is obsolete: true
Attachment #688588 -
Flags: review?(kinetik)
Comment 9•12 years ago
|
||
Comment on attachment 688588 [details] [diff] [review]
Ringer Channel v2
Review of attachment 688588 [details] [diff] [review]:
-----------------------------------------------------------------
::: content/html/content/src/nsHTMLMediaElement.cpp
@@ +1959,5 @@
> { "content", AUDIO_CHANNEL_CONTENT },
> { "notification", AUDIO_CHANNEL_NOTIFICATION },
> { "alarm", AUDIO_CHANNEL_ALARM },
> { "telephony", AUDIO_CHANNEL_TELEPHONY },
> + { "ringer", AUDIO_CHANNEL_RINGER },
Alignment of AUDIO_CHANNEL_RINGER is off compared to the others.
Attachment #688588 -
Flags: review?(kinetik) → review+
Assignee | ||
Comment 10•12 years ago
|
||
1. Fix the alignment.
2. Add reviewer and blocking-basecamp.
--------------------------------
Will check with Gaia team for
a. Assign ringer channel to audio element of ring tone.
b. Hook audio.volume.ring to settings for adjusting volume.
Will wait for landing of AudioChannelServiceChild part on bug 805333.
Then this issue is just resolved.
Attachment #688588 -
Attachment is obsolete: true
Attachment #688621 -
Flags: review+
Assignee | ||
Updated•12 years ago
|
Flags: needinfo?(alive)
Assignee | ||
Comment 11•12 years ago
|
||
Resolve the conflict with newest central base.
Attachment #688621 -
Attachment is obsolete: true
Attachment #689092 -
Flags: review+
Assignee | ||
Comment 12•12 years ago
|
||
Already test it with the corresponding Gaia Codes.
Keywords: checkin-needed
Assignee | ||
Comment 13•12 years ago
|
||
Resolve the conflict again.
Attachment #689092 -
Attachment is obsolete: true
Attachment #689122 -
Flags: review+
Can we give "ringer" the priority below "telephony" rather than the one above it?
Otherwise we have to do a considerably more complex implementation of bug 815445. And it seems weird to me that we'd want a phone call interrupted by a ringer signal anyway.
I'm fine with landing what we have and doing a followup patch to switch the two if that's preferred.
Assignee | ||
Comment 15•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #14)
> Can we give "ringer" the priority below "telephony" rather than the one
> above it?
>
> Otherwise we have to do a considerably more complex implementation of bug
> 815445. And it seems weird to me that we'd want a phone call interrupted by
> a ringer signal anyway.
>
> I'm fine with landing what we have and doing a followup patch to switch the
> two if that's preferred.
Consider to one case with telephony higher then ringer.
1. User is on in_call state.
2. There is another call coming in (multi-sim?)
3. Dialer detect that now is on in_call state so try to use a "Do Do Do" sound for notifying user.
The question is what channel type should be used by "Do Do Do"? If we use ringer then it will be muted by telephony channel.
On the other way, if we put ringer higher then telephony and actually we didn't let telephony muted by the reason from audio channel service. Then the case above can use ringer channel.
I would like to land it now and fire another bug for this. Thanks.
Should the "Do Do Do" sound mix with the audio from the call, or should the audio from the call be muted? If they should mix, then maybe we should use the "telephony" channel for the "Do Do Do" sound.
Should we use a sound to notify the user at all, or should we instead use the vibrator?
Assignee | ||
Comment 17•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #16)
> Should the "Do Do Do" sound mix with the audio from the call, or should the
> audio from the call be muted? If they should mix, then maybe we should use
> the "telephony" channel for the "Do Do Do" sound.
>
> Should we use a sound to notify the user at all, or should we instead use
> the vibrator?
1. They should be mixed together.
2. As I knew, normal behavior is using the sound not vibrate the phone near your ear.
If they should be mixed, and assuming that the sound should play in the earpiece and not the speaker, then then "telephony" channel sounds like the right channel for the "Do Do Do" sound.
The "ringer" channel would cause the audio to get muted, no? And the "ringer" channel usually plays in the speaker, no?
Assignee | ||
Comment 19•12 years ago
|
||
(In reply to Jonas Sicking (:sicking) from comment #18)
> If they should be mixed, and assuming that the sound should play in the
> earpiece and not the speaker, then then "telephony" channel sounds like the
> right channel for the "Do Do Do" sound.
>
> The "ringer" channel would cause the audio to get muted, no? And the
> "ringer" channel usually plays in the speaker, no?
All the answers are yes. So we need to ask Dialer app using different channels for notifying people when in call or not. Then I will fire another bug for this.
Agreed.
https://hg.mozilla.org/integration/mozilla-inbound/rev/2cb390b96e16
Is info from Alive still needed on this one?
Keywords: checkin-needed
Assignee | ||
Comment 23•12 years ago
|
||
No, already fired bug 819206 for Gaia part and notified Alive already.
Flags: needinfo?(alive)
https://hg.mozilla.org/releases/mozilla-aurora/rev/d2a1b9ecaf3c
https://hg.mozilla.org/releases/mozilla-beta/rev/d83ae2025b1c
status-firefox19:
--- → fixed
status-firefox20:
--- → fixed
NB: marking RESO FIXED when these bugs hit beta because it's getting hard for b2g folks to track remaining work for upcoming milestones.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → FIXED
Comment 26•12 years ago
|
||
Updated•12 years ago
|
status-firefox18:
--- → fixed
status-firefox20:
fixed → ---
Comment 27•12 years ago
|
||
verified on 2012-12-12 unagi daily build
build info:
releases/gaia : db435724709181ffa3348c06cfcc80b71375e73d
releases/gecko : 8e66dde61aec02ba5a4a4e44583679aedc609a73
Status: RESOLVED → VERIFIED
Comment 28•12 years ago
|
||
As I test on this bug,
- First play a music
- Make a phone call to the testing device
- Cancel the phone call
I found that
1. During the phone call, I can hear the music as a pulse in every short pause of ring
2. After I cancel the phone, the music will keep playing, i,e, the music didn't pause actually
Reopen the bug, feel free to let me know these are other bugs
thanks
Status: VERIFIED → REOPENED
Resolution: FIXED → ---
Comment 29•12 years ago
|
||
should be fixed by bug 815569
wait for landing in the release build
Comment 30•12 years ago
|
||
(In reply to John Shih from comment #29)
> should be fixed by bug 815569
> wait for landing in the release build
Can you retest now that bug 815569 has landed?
Comment 31•12 years ago
|
||
This is still reproducing for me. segments of music plays in between the rings. essentially, same as "I found that 1. During the phone call, I can hear the music as a pulse in every short pause of ring"
I'm on a 12-17 daily unagi build, so it should have picked up the bugfix from bug 815569.
BuildID=20121217070202
SourceRepository=http://hg.mozilla.org/releases/mozilla-b2g18
Str is same as comment 28.
Comment 32•12 years ago
|
||
(In reply to Tony Chung [:tchung] from comment #31)
> This is still reproducing for me. segments of music plays in between the
> rings. essentially, same as "I found that 1. During the phone call, I can
> hear the music as a pulse in every short pause of ring"
>
> I'm on a 12-17 daily unagi build, so it should have picked up the bugfix
> from bug 815569.
>
> BuildID=20121217070202
> SourceRepository=http://hg.mozilla.org/releases/mozilla-b2g18
>
> Str is same as comment 28.
Screencast showing the problem: http://youtu.be/BL01vB1rMxE
Comment 33•12 years ago
|
||
Just to be clear, the user will not be able to play music while in a call, even if he presses play after its paused. Is this correct?
You are seeing bug 819852.
Let's close this bug since the ringer signal has been hooked up to the audio channel manager. It's "just" not working perfectly yet.
Status: REOPENED → RESOLVED
Closed: 12 years ago → 12 years ago
Resolution: --- → FIXED
Comment 35•12 years ago
|
||
Reviewed and verified on "Unagi"
BuildID:20130103070201
No music plays between incoming phone rings
Status: RESOLVED → VERIFIED
You need to log in
before you can comment on or make changes to this bug.
Description
•