[TIMOB-14396] iOS7: AudioToolbox changes
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2013-09-13T22:06:43.000+0000 |
Affected Version/s | n/a |
Fix Version/s | 2013 Sprint 18, 2013 Sprint 18 API, Release 3.1.3, Release 3.2.0 |
Components | iOS |
Labels | ios7, module_media, qe-closed-3.1.3, qe-testadded |
Reporter | Shannon Hicks |
Assignee | Sabil Rahim |
Created | 2013-06-26T19:14:02.000+0000 |
Updated | 2013-09-13T22:06:56.000+0000 |
Description
There are changes to AudioToolbox with iOS 7. I noticed this because an app I'm building with Ti 3.1.1 and iOS SDK 6 is not properly playing audio when I set:
Ti.Media.audioSessionMode = Ti.Media.AUDIO_SESSION_MODE_PLAY_AND_RECORD;
var sound = Ti.Media.createSound({
url:soundFile.getNativePath(),
allowBackground:false,
});
sound.play();
Also, with iOS 7 you now must request Mic access, so we'll need new methods or properties to deal with this.
Testing Code
https://github.com/appcelerator/titanium_mobile/pull/4635 https://github.com/appcelerator/titanium_mobile/pull/4634
PR's merged
Doc PR's master - https://github.com/appcelerator/titanium_mobile/pull/4671 3_1_X - https://github.com/appcelerator/titanium_mobile/pull/4672
Tested the above code with: Appcelerator Studio, build: 3.1.3.201309132456 Titanium SDK, build:3.1.3.v20130912171547 Mac OS 10.8.4 Xcode 5 CLI: 3.1.2 Alloy: 1.2.2-beta Devices: iPad3 iOS7 GM seed iPhone5 iOS7 GM seed Verified the request to access the microphone, voice recording and playback.
reopened to correct comment
Verified fixed and working as expected. TiSDK 3.1.3.v20130913121549 CLI 3.1.2 GA TiStudio 3.1.3.201309132456 Tested on iPad Mini iOS7 Closing.