Closed Bug 891715 Opened 11 years ago Closed 11 years ago

[Cut The Ropes] Music from application(game) doesn't stop when locking the phone

Categories

(Tech Evangelism Graveyard :: Preinstalled B2G Apps, defect)

ARM
Gonk (Firefox OS)
defect
Not set
major

Tracking

(Not tracked)

RESOLVED INVALID

People

(Reporter: leo.bugzilla.gaia, Unassigned)

Details

(Whiteboard: [3rd Party])

STR: 1. Open "Cut the Rope" application and start playing the game. 2. Background music will be playing. Now lock the phone. Expected: The music should stop playing and the application should be paused Actual: The music continues to play in the background.
Flags: needinfo?(jsmith)
jason, please add your comments.
This works fine for me on a 7/1/2013 Partner Build. I am noticing that after returning back to the game after going to the lockscreen, the game sound won't resume until a new page is gone to. What build are you running?
Flags: needinfo?(jsmith)
Expected behavior from bug 828283. Any app should stop audio if they want -- by using visibilitychange event.
(In reply to Jason Smith [:jsmith] from comment #2) > This works fine for me on a 7/1/2013 Partner Build. I am noticing that after > returning back to the game after going to the lockscreen, the game sound > won't resume until a new page is gone to. > > What build are you running? Jason, the issue is when you lock the phone when playing games with music, the music of the game continue playing even in phone locked state. (In reply to Alive Kuo [:alive] from comment #3) > Expected behavior from bug 828283. > Any app should stop audio if they want -- by using visibilitychange event. I believe games in phone locked state should not play any music. It causes a drain in battery. Please let know if a separate bug should be raised w.r.t "Cut the Ropes" application to fix this behavior.
Flags: needinfo?(jsmith)
Fix this by "disallow all audio playing" when device locked would be a bad fix because there's no way to un-mute it since we mute all. Allow every audio in focus could be played and let the apps turn off sound by themselves is not a perfect way but better to go. I don't think there's a general fix here unless we want to back-out bug 828283. We don't know who is playing game sound and who is playing music sound if they are all using normal audio channel, from system. And I don't think we should invent a new channel for this case.
Sounds like the conclusion we've reached in this bug is that this is a TE bug on Cut the Rope.
Component: Gaia::System → Preinstalled B2G Apps
Flags: needinfo?(jsmith)
Product: Boot2Gecko → Tech Evangelism
Version: unspecified → Trunk
Summary: [system] Music from application(game) doesn't stop when locking the phone → [Cut The Ropes] Music from application(game) doesn't stop when locking the phone
Whiteboard: [3rd Party]
As you said in comment 2 jason, this issue cannot be reproduced on the latest build. There was some problem with receiving visibility change events for external-apps. Now it seems to work. Thanks for your efforts. Marking this issue as invalid.
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → INVALID
No longer blocks: b2g-cuttherope
blocking-b2g: leo? → ---
Product: Tech Evangelism → Tech Evangelism Graveyard
You need to log in before you can comment on or make changes to this bug.