[TIMOB-15096] Android: (Parity) Ti.Media.Sound.allowBackground:false should not mute when opening new (heavyweight) window
| GitHub Issue | n/a |
|---|---|
| Type | Bug |
| Priority | Low |
| Status | Open |
| Resolution | Unresolved |
| Affected Version/s | Release 3.1.2 |
| Fix Version/s | n/a |
| Components | Android |
| Labels | allowbackground, android, createsound, sound |
| Reporter | Fokke Zandbergen |
| Assignee | Unknown |
| Created | 2013-09-06T09:19:45.000+0000 |
| Updated | 2018-02-28T20:03:19.000+0000 |
Description
Leaving
Ti.Media.Sound.allowBackground to the default false will not only mute the sound when the app moves to the background, but also when you open a new heavyweight window (and thus activity) within the app. I can understand why this is because of the activity that created the sound is then paused, but I think this should not be happening for the sake of parity with iOS.
Proposed improvement
Only mute when the app itself is paused.Workaround
Create the sound inapp.js. But then, even if you explicitly set Ti.Media.Sound.allowBackground to false, the music will continue to play when the app moves to the background.
No comments