[TIMOB-8670] iOS: When playing sound over existing audio (user playing ipod,pandora,etc) it should lower volume of audio until sound if complete then raise volume back to same level.
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Low |
Status | Open |
Resolution | Unresolved |
Affected Version/s | Release 1.8.3 |
Fix Version/s | n/a |
Components | iOS |
Labels | api |
Reporter | Andrew Royce |
Assignee | Unknown |
Created | 2012-03-15T10:51:46.000+0000 |
Updated | 2018-02-28T20:04:19.000+0000 |
Description
*Expected Behavior:*
If a user is playing music (ipod,pandora,etc) and I play a sound in my code using Ti.Media.CreateSound I would expect the music to fade to a lower volume, play my sound, then music volume fade back in.
*Actual Behavior:*
Unfortunately what happens (assuming you are using AMBIENT as audioSessionMode) is they are played together which sounds pretty bad.
*Example*
To see an example of this first hand. Please do the following:
1. Download RunKeeper from the AppStore
2. Make sure music is playing from ipod or pandora or another 3rd party app.
3. Click 'Start Activity' button in RunKeeper.
You can see that RunKeeper will fade out the music, play there sound clip, then fade back in the music.
I can confirm this bug on 1.8.2 too.
And still happening on 2.1.1 Any ideas if this will be done at some point?
Low priority ? oh well... still happening on 3.0.0.GA