Closed Bug 858020 Opened 11 years ago Closed 11 years ago

[Call][Player] incomming Call and Music is mixing

Categories

(Firefox OS Graveyard :: General, defect, P1)

ARM
Gonk (Firefox OS)
defect

Tracking

(blocking-b2g:-)

RESOLVED DUPLICATE of bug 856546
blocking-b2g -

People

(Reporter: leo.bugzilla.gecko, Unassigned)

References

Details

(Whiteboard: [TD-8179][TD-8322])

[Precondition] 
   ver.1.1
[Tester`s Action] 
   Music playing -> incomming call -> call end
   repeat as the above action
[Issue]
   The sound of ringtone and music is mixed.
[reappearance]
   It is fine at first, It is reproduced after second time.
   If It weren`t reproduced after second time. try to attach the headphone.

I check pause event from queuing in nsHTMLMediaElement.
But, It dosen`t call pause function in nsNativeAudioStream.

If you try to test in headphone. Please note that It is not normal pause case, is mute case from Android library(AudioPolicyManager.cpp). Anyway, It dosen`t call pause fucntion, too.
I checked your comment from Bug 856556.
Audio Competing Policy:
  rule 1. Audio in foreground is always allowed to play.
  rule 2. Low priority channel will be muted by high priority channel. From low to high are
      normal -> content -> notification -> alarm -> telephony -> ringer -> pulbicnotification
  rule 3. Only normal channel is not allowed to play in the background.
  rule 4. Muted app by AudioChannel will be automatically resumed only when it backs to 
      foreground.
In this case, call is higher priority than content channel.

And can you explain difference case between mute and pause from audio channel? 
Thanks.
blocking-b2g: --- → leo?
(In reply to leo.bugzilla.gecko from comment #1)
> And can you explain difference case between mute and pause from audio
> channel? 

In HTMLMediaElement, we do pause when AudioChannelAgent asked to. So there should be just a case on pause HTMLMediaElement by AudioChannel or it is a bug.
The root cause here should be the same with Bug 856546. And there is a patch in that one already.
Depends on: 856546
Status: NEW → RESOLVED
blocking-b2g: leo? → -
Closed: 11 years ago
Resolution: --- → DUPLICATE
Whiteboard: [TD-8179][TD-8322]
You need to log in before you can comment on or make changes to this bug.