Closed
Bug 832665
Opened 11 years ago
Closed 11 years ago
Switching back and forth between the music app and FM radio (using home key) causes some unexpected behavior.
Categories
(Firefox OS Graveyard :: Gaia::Music, defect, P1)
Tracking
(blocking-b2g:tef+, firefox19 wontfix, firefox20 wontfix, firefox21 fixed, b2g18 fixed, b2g18-v1.0.0 fixed)
People
(Reporter: nsarkar, Assigned: baku)
References
Details
(Whiteboard: [cr 442632])
Attachments
(1 file, 2 obsolete files)
8.01 KB,
patch
|
baku
:
review+
|
Details | Diff | Splinter Review |
These are the steps to reproduce the issue seen - 1. Insert wired headset to the phone. 2. Play Music. 3. Press Home Key. Music plays on the homescreen. 4. Open FM. FM music plays. 5. Press home key and go back to music and play. Music resumes playing. 6. Again press home key in music screen. 7. Now the music doesn't play in the homescreen (as expected similar to step 3) Expected beahvior: Music should play even after pressing home key. Also, killing the FM app seems to fix the problem. Music starts playing in the homescreen. Seems like FM app is causing some issues here.
Summary: Switching between music app and FM has some issues. → Switching back and forth between the music app and FM radio (using home key) causes some unexpected behavior.
Comment 2•11 years ago
|
||
The current design will mute all of content channels if there are more then two apps with content channels are playing in the background. If the behavior is want to kept last one (fall to background) be continue to play, then we need to modify AudioChannelService.
Comment 3•11 years ago
|
||
If this is WAD then closing as wontfix seems fine. This bug was simply raised because the observed behavour was unexpected and seems buggy
Comment 4•11 years ago
|
||
Hi Casey, Could you help to clarify the UX behavior in this case? Thanks.
Flags: needinfo?(kyee)
Assignee | ||
Comment 5•11 years ago
|
||
(In reply to Michael Vines [:m1] from comment #3) > If this is WAD then closing as wontfix seems fine. This bug was simply > raised because the observed behavour was unexpected and seems buggy That Marco said is right. The current implementation mutes all the content channels when in background if there are more then two apps playing. I would suggest this new behaviour: 1. Play Music. 2. Press Home Key. Music plays on the homescreen. 3. Open FM. FM music plays. 4. Press home key. FM plays on the homescreen. 5. I stop/close/kill FM 6. No music is played 7. Open Music. Music resumes playing. So, the idea is: a content channel plays in background but it's muted if some other app using a content channel starts playing and it doesn't resume, until it becomes visible again.
Flags: needinfo?(kyee)
(In reply to Andrea Marchesini (:baku) from comment #5) > So, the idea is: a content channel plays in background but it's muted if > some other app using a content channel starts playing and it doesn't resume, > until it becomes visible again. This sounds like a good solution and exactly what I would recommend :) In this scenario: > 1. Play Music. > 2. Press Home Key. Music plays on the homescreen. > 3. Open FM. FM music plays. > 4. Press home key. FM plays on the homescreen. > 5. I stop/close/kill FM > 6. No music is played > 7. Open Music. Music resumes playing. I would make it so that the user in Step 7 have to manually resume music so that it doesn't surprise the user when arriving back with music.
Flags: needinfo?(kyee)
Updated•11 years ago
|
blocking-b2g: tef? → tef+
Assignee | ||
Comment 7•11 years ago
|
||
Attachment #704962 -
Flags: review?(mchen)
Assignee | ||
Updated•11 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
Comment 8•11 years ago
|
||
Comment on attachment 704962 [details] [diff] [review] patch Review of attachment 704962 [details] [diff] [review]: ----------------------------------------------------------------- Thanks for taking the consideration in advance. ::: dom/audiochannel/AudioChannelService.cpp @@ +174,5 @@ > + // If the audio content channel is visible, let's remember this ChildID. > + if (newType == AUDIO_CHANNEL_INT_CONTENT && > + oldType == AUDIO_CHANNEL_INT_CONTENT_HIDDEN && > + !mActiveContentChildIDs.Contains(aChildID)) { > + As I knew that there will be only one app (also means one childID) in the foreground but it can have more then one media elements (agents). Since child id will be checked here then there is only one will be added into mActiveContentChildIDs. If this assumption is correct, do we need to use nsTArray or just an uint64_t mActiveContentChildID? @@ +418,5 @@ > } > + > + while ((index = mActiveContentChildIDs.IndexOf(childID)) != -1) { > + mActiveContentChildIDs.RemoveElementAt(index); > + } Even there are more then one child id in the foreground, line 205 still limits only one will be in mActiveContentChildIDs for each child id. So do we need to use while loop here?
Assignee | ||
Comment 9•11 years ago
|
||
> As I knew that there will be only one app (also means one childID) in the > foreground but it can have more then one media elements (agents). Since > child id will be checked here then there is only one will be added into > mActiveContentChildIDs. If this assumption is correct, do we need to use > nsTArray or just an uint64_t mActiveContentChildID? I think more than 1 app can be visible. The keyboard is an example. > Even there are more then one child id in the foreground, line 205 still > limits only one will be in mActiveContentChildIDs for each child id. So do > we need to use while loop here? Yes, because we add the childID just once. BTW: I would like to use the appID instead childID, but this is a separated bug.
Comment 11•11 years ago
|
||
(In reply to Andrea Marchesini (:baku) from comment #9) > > I think more than 1 app can be visible. The keyboard is an example. > Oh, right. Thanks for the reminding. > > Even there are more then one child id in the foreground, line 205 still > > limits only one will be in mActiveContentChildIDs for each child id. So do > > we need to use while loop here? > > Yes, because we add the childID just once. Since childID is added just once, could we remove the while loop?
Assignee | ||
Comment 12•11 years ago
|
||
Attachment #704962 -
Attachment is obsolete: true
Attachment #704962 -
Flags: review?(mchen)
Attachment #705802 -
Flags: review?(mchen)
Comment 13•11 years ago
|
||
Comment on attachment 705802 [details] [diff] [review] patch Review of attachment 705802 [details] [diff] [review]: ----------------------------------------------------------------- Looks great.
Attachment #705802 -
Flags: review?(mchen) → review+
Comment 14•11 years ago
|
||
I tried landing this, but stuff has changed enough for this not to apply cleanly any more :( Andrea, can you merge this and land on inbound and b2g18 asap?
Assignee | ||
Comment 15•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/a0c4559f5d2e For inbound I need to have 830648 829561 830672 landed.
Comment 16•11 years ago
|
||
Backed out for cppunitest orange: https://tbpl.mozilla.org/?tree=Mozilla-Inbound&rev=a0c4559f5d2e https://hg.mozilla.org/integration/mozilla-inbound/rev/6007dc902385
Assignee | ||
Comment 17•11 years ago
|
||
The tests were not updated.
Attachment #705802 -
Attachment is obsolete: true
Attachment #706381 -
Flags: review+
Assignee | ||
Comment 18•11 years ago
|
||
https://hg.mozilla.org/integration/mozilla-inbound/rev/5197fd796303
Assignee | ||
Comment 19•11 years ago
|
||
https://hg.mozilla.org/releases/mozilla-b2g18/rev/9ba470b353d2
Comment 20•11 years ago
|
||
https://hg.mozilla.org/mozilla-central/rev/5197fd796303
Status: NEW → RESOLVED
Closed: 11 years ago
Flags: in-testsuite+
Resolution: --- → FIXED
Target Milestone: --- → B2G C4 (2jan on)
Updated•11 years ago
|
status-b2g18:
--- → fixed
status-firefox19:
--- → wontfix
status-firefox20:
--- → wontfix
status-firefox21:
--- → fixed
Updated•11 years ago
|
status-b2g18-v1.0.0:
--- → fixed
Updated•11 years ago
|
Status: RESOLVED → VERIFIED
Comment 21•11 years ago
|
||
Issue no longer reproduces on the Unagi device Build ID: 20130214070203 December 5th Kernel Gaia: 6544fdb8dddc56f1aefe94482402488c89eeec49 Gecko http://hg.mozilla.org/releases/mozilla-b2g18_v1_0_1/rev/d1288313218e Switching between the music app and the FM radio app is flawless
You need to log in
before you can comment on or make changes to this bug.
Description
•