[TIMOB-1802] iPhone audio session setting does not work
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Trivial |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2011-04-17T01:57:13.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 1.5.0 |
Components | iOS |
Labels | audio, ios, iphone, session |
Reporter | Stephen Tramer |
Assignee | Stephen Tramer |
Created | 2011-04-15T03:02:48.000+0000 |
Updated | 2011-04-17T01:57:13.000+0000 |
Description
Thought this problem had been squashed in the past, but a recent helpdesk ticket clued me in that it persists. Setting an audio mode WHILE the session is active is apparently not respected: So if we do the following:
var v = Ti.Media.createSound();
v = Ti.Media.createSound({audioPlaybackMode:...});
Then there's no guarantee that the audio playback mode will be set (the initially created sound is already 'taking up' our application's audio session). Note that the audio playback mode set for 'v' MAY be respected the next time a sound plays!
We need to work out a way to manage audio session(s) so that this issue can be avoided.
Comments
- Jeff Haynie 2011-04-15
(from [cb2651aaac259b475a94a8845249d040cc6e28a2]) [#1802 state:fixed-in-qa] Changed how audio sessions are managed - they're now only claimed/released when sounds start/stop. Many improvements to audio tests. http://github.com/appcelerator/titanium_mobile/commit/cb2651aaac259b475a94a8845249d040cc6e28a2"> http://github.com/appcelerator/titanium_mobile/commit/cb2651aaac259...
- Stephen Tramer 2011-04-15
Interestingly, audio streaming does NOT respect the audio session mode - you may play both a stream and a sound when the mode is SOLO_AMBIENT, for example. Mystifying, but this seems to be an Apple internal.
- Thomas Huelbert 2011-04-15
ipod 3rd gen, 1.4.2.e6bd67
- Thomas Huelbert 2011-04-15
1.4.2.e6bd67 4.1 ipod touch