Closed
Bug 1003025
Opened 11 years ago
Closed 7 years ago
[madai] the music is shortly played for the incomming call
Categories
(Firefox OS Graveyard :: AudioChannel, defect)
Tracking
(b2g-v2.2 affected)
RESOLVED
WONTFIX
Tracking | Status | |
---|---|---|
b2g-v2.2 | --- | affected |
People
(Reporter: oedipus31, Unassigned)
References
Details
(Whiteboard: [AUDIO_COMPETING][LibGLA,TD2422094239,QE1, B])
Attachments
(1 file)
996 bytes,
patch
|
Details | Diff | Splinter Review |
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:28.0) Gecko/20100101 Firefox/28.0 (Beta/Release)
Build ID: 20140314220517
Steps to reproduce:
1. After BT paring and connected , play the music
2. ringing incomming call
Actual results:
The music is shortly played to the speaker between the ring circle.
Audio Track(Music) is called from gecko for ringing.
Expected results:
The ring should be played only.
blocking-b2g: --- → 1.4?
OS: All → Gonk (Firefox OS)
Hardware: All → ARM
Comment 1•11 years ago
|
||
QA Wanted to see if we can reproduce on 1.3.
Component: General → Gaia::Music
Keywords: qawanted
Comment 2•11 years ago
|
||
Flagging Mike for audio policy feedback - Mike, was Harly working on this?
Flags: needinfo?(mtsai)
Comment 3•11 years ago
|
||
(In reply to Jason Smith [:jsmith] from comment #1)
> QA Wanted to see if we can reproduce on 1.3.
Issue is NOT reproducible on Buri 1.3.
I paired Buri to another phone via bluetooth, played music, received a call, and incoming call sound wasn't mixed with the music; music was paused and I can only hear phone ringing. Issue repro rate: 0 out of 5 attempts.
Tested on:
Device: Buri 1.3 MOZ
BuildID: 20140429024001
Gaia: caab7a78f0c04913f48a3051259663ee85625906
Gecko: f84a8ffbc552
Version: 28.0
Firmware Version: v1.2-device.cfg
Keywords: qawanted
Comment 4•11 years ago
|
||
Issue repro rate: 0 out of 5 attempts
>> Does this mean the issue can be in backlog for monitoring it?
Keywords: regression
Comment 5•11 years ago
|
||
Which device is this happening on - bug is marked madai? We don't have madai devices yet for testing.
Also per QA I see that it is not reproducible on 1.3 Buri, but is it happening on 1.4 Buri?
+ Dkuo to see if we caused any regressions here...
Flags: needinfo?(dkuo)
Comment 6•11 years ago
|
||
Adding qawanted to see if we can reproduce this on 1.4 Buri.
Keywords: qawanted
Comment 7•11 years ago
|
||
I was able to reproduce this only with the speaker. Comment 3 was tested with a headset plugged in (I didn't think it would make a difference but I was wrong).
Issue is reproducible 80% on today's 1.4 and 1.3. After bluetooth pairing, the first ring of an incoming call via speakers could be mixed with music from Music app. After the 1st ring, music is correctly paused and only ringer sound can be heard. Repro rate seems higher if user stays on Music app when a call comes.
Keywords: qawanted
Comment 8•11 years ago
|
||
Marco - I thought it was expected behavior to have the ringer play with music in the background if the music app was playing when the incoming call came in. We implemented this as a feature in 1.2 to my understanding.
Can you confirm or is this a bug?
Flags: needinfo?(mchen)
Keywords: regression
Comment 9•11 years ago
|
||
I suspect it is a bug about 3 seconds timing issue from Window Manager.
Please refer to the link as below.
https://bugzilla.mozilla.org/show_bug.cgi?id=908525#c49
Flags: needinfo?(mchen)
Comment 10•11 years ago
|
||
(In reply to Hema Koka [:hema] from comment #5)
> + Dkuo to see if we caused any regressions here...
I think comment 0 is more like bug 843955, the background music plays shortly between the ringtone/alert cycles, it's because before the ringtone repeat again, there is a gap that the audio element is preparing to play the ringtone, so the audio competing policy thinks there is no active audio channel in the foreground, then the background audio channel(music) is able to resume again, and when the ringtone is ready and plays again, the music is interrupted, that's why we can hear the background music between the ringtone cycles.
To fix this issue, the technique I used in bug 958470 could work I guess. If we use the audio context(web audio) instead of the audio element to play the ringtone, then the background music won't be able to play shortly because the audio context will occupy the active channel, so the audio competing policy will treat the audio context as an endless stream and will not release the active channel to the others. But note that once the audio context is created, it will trigger the audio channel changes, even there is no source connected, so remember to clean/flush it after we used the audio context, or all the other channels won't be able to play any sound after we answered the calls.
(In reply to Marco Chen [:mchen] from comment #9)
> I suspect it is a bug about 3 seconds timing issue from Window Manager.
> Please refer to the link as below.
>
> https://bugzilla.mozilla.org/show_bug.cgi?id=908525#c49
Comment 7 and what Marco mentioned should be a similar issue but the result is actually different, the 3 seconds delay of the visibility change will cause the background music and the ringtone mix together, that means the user will hear the music and ringtone at the same time, which is bad ux for the users. For this issue, bug 927862 should fix this because the visibility should be correct set after it landed.
Component: Gaia::Music → AudioChannel
Flags: needinfo?(dkuo)
Whiteboard: [AUDIO_COMPETING]
Comment 12•10 years ago
|
||
I'm sorry to tell you that the issue is happening on 2.0 version.
I guess that the problem was not solved before.
what the issue is going on?
Is there anybody who can know the situation and tell me the process of that?
Hi Dominic
Since bug#927862 is now fixed, is this one also fixed?
Thanks
Flags: needinfo?(scheng) → needinfo?(dkuo)
Comment 14•10 years ago
|
||
It should if bug 927862 does its work, but I didn't try myself so could be 100% sure, can we request qawanted? thanks.
Flags: needinfo?(dkuo)
Comment 15•10 years ago
|
||
(In reply to Dominic Kuo [:dkuo] from comment #14)
> It should if bug 927862 does its work, but I didn't try myself so could be
could not I mean
> 100% sure, can we request qawanted? thanks.
Whiteboard: [AUDIO_COMPETING] → [AUDIO_COMPETING][LibGLA,TD2422094239,QE1, B]
Hi Mike -
Per Comment#14, this issue should already fixed in master/2.1, since i don't have a BT headset with me, could you help to check if that is the case?
Thanks
Vance
Flags: needinfo?(mlien)
Comment 17•10 years ago
|
||
no this issue doesn't fixed with with v2.0 and v2.1 and I think the symptom is the same with bug1043749
this issue doesn't need BT necessary, just clarify the STR
1. play music
2. ringing incomming call
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(mlien)
Summary: [madai] the music is shortly played for the incomming call after bluetooth pairing → [madai] the music is shortly played for the incomming call
Comment 18•10 years ago
|
||
Hi Dominic,
This problem will happen while music playing on the "foreground" and might different with bug958470
If music playing on the "background", audio channel switch is fine and has no any mixed audio between media and ringer
Do you have any idea?
Flags: needinfo?(dkuo)
Comment 19•10 years ago
|
||
(In reply to Mike Lien[:mlien] from comment #18)
> Hi Dominic,
>
> This problem will happen while music playing on the "foreground" and might
> different with bug958470
Yes, it looks different but the technique I used(use audio context instead of audio element) could possibly fix this issue(I can write a quick patch to prove it if needed), but I think bug 927862 should already fixed this bug, since the root cause of this bug is one of the major problem we want to address in bug 927862.
> If music playing on the "background", audio channel switch is fine and has
> no any mixed audio between media and ringer
>
> Do you have any idea?
The root cause of this bug was, music and callscreen are both "visible(document.hidden = false)" when music is playing in the foreground then an incoming call rings, what you described sounds like if music is playing in the foreground/background will affect the result, this shouldn't happen after bug 927862 landed, because the callscreen should block the foreground music and let music's visibility become "hidden", then music will be interrupted entirely.
Can anyone first verify if bug 927862 is included while testing? thanks!
Flags: needinfo?(dkuo)
Comment 20•10 years ago
|
||
[Blocking Requested - why for this release]:
partner requested as blocker. nominate to 2.0 ?
blocking-b2g: backlog → 2.0?
Comment 21•10 years ago
|
||
Triage: blocking. Hi Star, can you take a look at this? Thank you.
blocking-b2g: 2.0? → 2.0+
Flags: needinfo?(scheng)
Comment 22•10 years ago
|
||
AFAIK, bug 927862 can *not* completely resolve this issue. It reduces the duration time of audio leak form ~3000ms to ~300ms. Bug 1034001 can completely fix this symptom which mentioned in comment 0.
Hi, alive
If there is any wrong information I said, please feel free to point it out.
Flags: needinfo?(scheng) → needinfo?(alive)
Comment 23•10 years ago
|
||
(In reply to Star Cheng [:scheng] from comment #22)
>
> AFAIK, bug 927862 can *not* completely resolve this issue. It reduces the
> duration time of audio leak form ~3000ms to ~300ms. Bug 1034001 can
> completely fix this symptom which mentioned in comment 0.
>
> Hi, alive
>
> If there is any wrong information I said, please feel free to point it out.
Very True.
Flags: needinfo?(alive)
Comment 24•10 years ago
|
||
Per offline discussion with Star, he told me that right now he doesn't have a comprehensive solution for this. The best solution is getting bug 1034001 solved, which is targeted to be done by 2.2.
For 2.0, Rachelle, could you help check if our partner can accept current 2.1 status? The audio leak is actually not noticeable (to me) right now. Please see the video (http://youtu.be/usFruRDcPy8) I recorded.
Flags: needinfo?(ryang)
Comment 25•10 years ago
|
||
Hi Eric,
Thanks for your feedback and video. I found it's fine, and should be acceptable.
May I know if any improvement is done on 2.1 on this audio handling that we might be able to apply on 2.0 which is partner currently requested ?
Thank you very much!
Flags: needinfo?(ryang) → needinfo?(echou)
Comment 26•10 years ago
|
||
(In reply to Rachelle Yang [:ryang][ryang@mozilla.com] from comment #25)
> Hi Eric,
>
> Thanks for your feedback and video. I found it's fine, and should be
> acceptable.
> May I know if any improvement is done on 2.1 on this audio handling that we
> might be able to apply on 2.0 which is partner currently requested ?
Please see comment 19 and comment 22. I believe the improvement came from the fix of bug 927862. So you may want to revisit that bug and see if the patch of bug 927862 could be merged to partner's branch.
Flags: needinfo?(echou)
Comment 27•10 years ago
|
||
Triage to denominate it for 2.0 for now since bug 927862 is a huge patch; too risky to land on 2.0.
blocking-b2g: 2.0+ → ---
Comment 29•10 years ago
|
||
Hi Wayne: per triage discussion we don't nom. this issue for 2.0 however provide a workaround patch for partners' try. Would you help put it here? Thank you.
Flags: needinfo?(waychen)
Comment 31•10 years ago
|
||
Thanks Wayne!
Reporter | ||
Comment 32•10 years ago
|
||
(In reply to Wayne Chen [:xwaynec] from comment #30)
> Created attachment 8516680 [details] [diff] [review]
> audio_policy.patch
>
> Hi Wesly,
>
> Partner could try it first.
I recommend temp_mute after ringing, connecting.
===================================================
// Audio_Framework: Music is mixing with ringing in FFOS2.0, after MT call
if (state == AudioSystem::MODE_RINGTONE) {
for (size_t i = 0; i < mOutputs.size(); i++) {
AudioOutputDescriptor *desc = mOutputs.valueAt(i);
setStrategyMute(STRATEGY_MEDIA, true, mOutputs.keyAt(i));
setStrategyMute(STRATEGY_MEDIA, false, mOutputs.keyAt(i), MUTE_TIME_MS*8,
getDeviceForStrategy(STRATEGY_MEDIA, false));
}
}
// Audio_Framework: Music is mixing with ringing in FFOS2.0, after MT call
if (state == AudioSystem::MODE_IN_CALL) {
for (size_t i = 0; i < mOutputs.size(); i++) {
AudioOutputDescriptor *desc = mOutputs.valueAt(i);
setStrategyMute(STRATEGY_MEDIA, true, mOutputs.keyAt(i));
setStrategyMute(STRATEGY_MEDIA, false, mOutputs.keyAt(i), MUTE_TIME_MS*4,
getDeviceForStrategy(STRATEGY_MEDIA, false));
}
}
=====================================================
In v2.0, if the user just receive a call, the music keeps to play after the call is connected.
Comment 33•10 years ago
|
||
Thanks Wayne and Seil!
Comment 34•10 years ago
|
||
Hi Seil,
if the user just receive a call, the ringtone keeps to play after the call is connected.
could I make a modify as follows:
>// Audio_Framework: Music is mixing with ringing in FFOS2.0, after MT call
> if (state == AudioSystem::MODE_IN_CALL) {
> for (size_t i = 0; i < mOutputs.size(); i++) {
> AudioOutputDescriptor *desc = mOutputs.valueAt(i);
> setStrategyMute(STRATEGY_MEDIA, true, mOutputs.keyAt(i));
> setStrategyMute(STRATEGY_MEDIA, false, mOutputs.keyAt(i), MUTE_TIME_MS*4,
> getDeviceForStrategy(STRATEGY_MEDIA, false));
> setStrategyMute(STRATEGY_SONIFICATION, true, mOutputs.keyAt(i));
> setStrategyMute(STRATEGY_SONIFICATION, false, mOutputs.keyAt(i), MUTE_TIME_MS*8,
> getDeviceForStrategy(STRATEGY_SONIFICATION, false));
> }
> }
Flags: needinfo?(oedipus31)
Comment 35•10 years ago
|
||
Hi Seil,
Can you help to explain why music keeps playing when the call is connected?
In my opinion,music is muted or paused when the ringtone comes and will not resume play until the call is ended.
Comment 36•10 years ago
|
||
Hi Seil,
There might be some problems in the workaround patch in comment32.
For the delay time MUTE_TIME_MS*8,if we hang up the moment the ring tone is playing,then we could not hear music until the delay time is over.
Can you help to check the issue?
Updated•10 years ago
|
Blocks: app-audio-channel
Comment 39•10 years ago
|
||
This issue also appears when listening to FM Radio through headphones and receiving a call.
status-b2g-v2.2:
--- → affected
Reporter | ||
Comment 40•10 years ago
|
||
(In reply to jingmei.zhang from comment #36)
> Hi Seil,
>
> There might be some problems in the workaround patch in comment32.
>
> For the delay time MUTE_TIME_MS*8,if we hang up the moment the ring tone is
> playing,then we could not hear music until the delay time is over.
>
> Can you help to check the issue?
sorry, I coundn`t follow up your comment because another project.
You are right that it has some problum after hang up the moment. but I think the temporary mute is safer better than continous mute in v2.0
In v2.2, I know the root cause is improved.
We nomally set as MUTE_TIME_MS*2 or MUTE_TIME_MS value for android project reference.
Flags: needinfo?(oedipus31)
Comment 41•7 years ago
|
||
Firefox OS is not being worked on
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → WONTFIX
You need to log in
before you can comment on or make changes to this bug.
Description
•