Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-15096] Android: (Parity) Ti.Media.Sound.allowBackground:false should not mute when opening new (heavyweight) window

GitHub Issuen/a
TypeBug
PriorityLow
StatusOpen
ResolutionUnresolved
Affected Version/sRelease 3.1.2
Fix Version/sn/a
ComponentsAndroid
Labelsallowbackground, android, createsound, sound
ReporterFokke Zandbergen
AssigneeUnknown
Created2013-09-06T09:19:45.000+0000
Updated2018-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 in app.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.

Comments

No comments

JSON Source