Closed Bug 1018825 Opened 10 years ago Closed 10 years ago

[System][Music]Status bar play icon is still visible when music is no longer playing.

Categories

(Firefox OS Graveyard :: AudioChannel, defect)

defect
Not set
normal

Tracking

(blocking-b2g:-, b2g-v1.3 affected, b2g-v1.4 affected, b2g-v2.0 affected, b2g-v2.1 affected)

RESOLVED FIXED
2.1 S1 (1aug)
blocking-b2g -
Tracking Status
b2g-v1.3 --- affected
b2g-v1.4 --- affected
b2g-v2.0 --- affected
b2g-v2.1 --- affected

People

(Reporter: ranjith253, Assigned: scheng, NeedInfo)

References

Details

(Whiteboard: [2.0-flame-test-run-3])

Attachments

(3 files, 1 obsolete file)

Attached image Issue_image.jpg
User Agent: Mozilla/5.0 (Windows NT 6.1; rv:31.0) Gecko/20100101 Firefox/31.0 (Beta/Release) Build ID: 20140410030200 Steps to reproduce: 1.Go to music app -> play a song ->press home key 2.Open video app -> play a video -> press home key. After above two steps both Music & video are paused. Actual results: Check on the status bar play icon is still visible even if the music play-back is in pause state. Expected results: When music is in pause state , play icon should disappear from status bar.
Dear Wayne, Can you please help us in identifying the correct person for looking into this issue? Thanks Sharaf
Flags: needinfo?(wchang)
I think this issue is related with audio channel. Music is automatically resumed after click music icon.
Dominic, can you check this behaviour first? By design do we show the icon if music is paused?
Flags: needinfo?(wchang) → needinfo?(dkuo)
blocking-b2g: --- → 1.4?
Can anybody check this behaviour is happend in ver 2.0? We are preparing for v2.0. If this case is fixed in v2.0, That's no problem.
I think this should be an issue because apparently music and video are both paused/interrupted, the play icon should disappear if there is no active sounds playing. How we show/hide the play icon in status bar is let system app listen to the |audio-channel-changed| mozChromeEvent then decide whether to show it or not when it's |content| channel, and because both music and video use content type, so there is no audio-channel-changed mozChromeEvent(or it did fired but still content channel). This might be an issue under audio channel cause when the active content channel is paused(video), although there is an interrupted content channel is the background(music), it should still fire |audio-channel-changed|, like |none| which make more sense and could probably solve this problem. Marco, do you know anyone can help on this since Start is PTOing?
Component: Gaia::System → AudioChannel
Flags: needinfo?(dkuo) → needinfo?(mchen)
I found it is a gecko bug and related to [1]. There is a speical check for content channel at [1] so we should skip the normal check below. Will find some time to submit the patch. [1] http://dxr.mozilla.org/mozilla-central/source/dom/audiochannel/AudioChannelService.cpp?from=audiochannelservice.cpp&case=true#549
Flags: needinfo?(mchen)
blocking-b2g: 1.4? → 2.0?
UX, Please check if this behavior is per design or needs a change.
Flags: needinfo?(firefoxos-ux-bugzilla)
Flagging Jacqueline on expected music behavior.
Flags: needinfo?(firefoxos-ux-bugzilla) → needinfo?(jsavory)
Dominic is correct - if there is no active sounds playing the pause icon should not appear. The expected result of this bug is the intended behaviour in this case, the play icon should disappear after pausing both music and video.
Flags: needinfo?(jsavory)
blocking-b2g: 2.0? → backlog
Hi, Is this bug currently taken by anyone ?
Nominating this - according to UX feedback the current behaviour is incorrect. (In reply to jsavory from comment #9) > Dominic is correct - if there is no active sounds playing the pause icon > should not appear. > > The expected result of this bug is the intended behaviour in this case, the > play icon should disappear after pausing both music and video.
blocking-b2g: backlog → 2.0?
Looks like Marco has found the root cause and should be able to fix this issue. Marco, please take this one or assign to someone you think is available to fix this, thanks.
Flags: needinfo?(mchen)
Already asked Star to help this issue and thanks for Eric's team.
Flags: needinfo?(mchen) → needinfo?(scheng)
Adding qawanted to check on 1.3 to see if this is a regression.
Keywords: qawanted
(In reply to bhavana bajaj [:bajaj] [NOT reading Bugmail, needInfo please] from comment #14) > Adding qawanted to check on 1.3 to see if this is a regression. This issue occurs on Flame 1.3 base image v122. It's NOT a regression. Behavior: If music is interrupted and paused by Video app, it still displays a 'play' icon on status bar even though music is no longer playing. Device: Flame Build ID: 20140616171114 Gaia: e1b7152715072d27e0880cdc6b637f82fa42bf4e Gecko: e181a36ebafaa24e5390db9f597313406edfc794 Version: 28.0 (1.3) Firmware Version: B1TC00011220 User Agent: Mozilla/5.0 (Mobile; rv:28.0) Gecko/28.0 Firefox/28.0 I also did a quick branch check so I could set tracking flags accordingly. Issue reproduces on Buri 2.0, Flame 2.1 master, and Flame 1.4.
QA Whiteboard: [QAnalyst-Triage?]
Flags: needinfo?(jmitchell)
Keywords: qawanted
QA Whiteboard: [QAnalyst-Triage?] → [QAnalyst-Triage+]
Flags: needinfo?(jmitchell)
Flags: needinfo?(scheng)
Assignee: nobody → scheng
(In reply to Marco Chen [:mchen] (Workshop with Partner 6/16 ~ 6/20) from comment #13) > Already asked Star to help this issue and thanks for Eric's team. I will deal with this issue. Thanks for Marco's analysis.
(In reply to Wayne Chang [:wchang] from comment #11) > Nominating this - according to UX feedback the current behaviour is > incorrect. > > (In reply to jsavory from comment #9) > > Dominic is correct - if there is no active sounds playing the pause icon > > should not appear. > > > > The expected result of this bug is the intended behaviour in this case, the > > play icon should disappear after pausing both music and video. Check QA results below, we've not blocked a release on this issue and have shipped them..So this does not qualify as a blocker, if folks have a low risk fix to uplift before July 21 we can take it.
blocking-b2g: 2.0? → -
QA Whiteboard: [QAnalyst-Triage+] → [QAnalyst-Triage+][lead-review+]
QA Whiteboard: [QAnalyst-Triage+][lead-review+] → [QAnalyst-Triage?][lead-review+]
Flags: needinfo?(ktucker)
Whiteboard: [2.0-flame-test-run-3]
Status: UNCONFIRMED → NEW
Ever confirmed: true
Flags: needinfo?(ktucker)
QA Whiteboard: [QAnalyst-Triage?][lead-review+] → [QAnalyst-Triage+][lead-review+]
Attached patch Bug-1018825-fix.patch (obsolete) — Splinter Review
To fix the special check for the content channel.
Attachment #8462309 - Flags: review?(mchen)
Comment on attachment 8462309 [details] [diff] [review] Bug-1018825-fix.patch Review of attachment 8462309 [details] [diff] [review]: ----------------------------------------------------------------- It looks good and only one suggeston as below. ::: dom/audiochannel/AudioChannelService.cpp @@ +596,5 @@ > + } > + } else { > + higher = kMozAudioChannelAttributeTable[index].value; > + break; > + } We can "continue" the case of empty earlier then saving one if-else level. if (mChannelCounters[index * 2 + 1].IsEmpty()) { continue; } if (kMozAudioChannelAttributeTable[index].value == (int16_t)AudioChannel::Content) { if (mPlayableHiddenContentChildID != CONTENT_PROCESS_ID_UNKNOWN) { higher = kMozAudioChannelAttributeTable[index].value; break; } } else { higher = kMozAudioChannelAttributeTable[index].value; break; }
Attachment #8462309 - Flags: review?(mchen) → review+
1.To modify the code according to Marco's suggestation of comment 20. 2.TPBL result: https://tbpl.mozilla.org/?tree=Try&rev=ac440b3d06ba 3.add reviewer
Attachment #8462309 - Attachment is obsolete: true
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → 2.1 S1 (1aug)
hi Star,could the patch be applied in 1.4?
Flags: needinfo?(scheng)
Hi Star, As the patch have not applied in 1.4,I have filed a patch for 1.4 according to the patch you provided in 2.1. I am a newer for gecko audio,could you please help to review the patch?? Thank you so much!!
See Also: → 1186533
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: