[TIMOB-16209] iOS: Kitchen Sink : Cannot stop audio recording
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Invalid |
Resolution Date | 2017-05-23T20:30:26.000+0000 |
Affected Version/s | n/a |
Fix Version/s | n/a |
Components | iOS |
Labels | createAudioRecorder, ios, iphone, stop() |
Reporter | Stephen Page |
Assignee | Eric Merriman |
Created | 2012-08-09T05:23:24.000+0000 |
Updated | 2017-05-23T20:30:30.000+0000 |
Description
Steps to reproduce:
1) Install Kitchen Sink on iPhone or iPhone Simulator
2) Launch Kitchen Sink
3) Choose Phone Tab > Sound > Record
4) Hit Start Recording.
5) Hit Stop Recording.
Result:
Recording never stops when Stop Recording button pressed.
Expected Result:
Recording should stop when Stop Recording button pressed.
This works fine on this end with the environment specifications.
Fails for me using Ti SDK 2.1.3.v20120927181611 and 3.0.0.v20121002103353, Xcode 4.5, iOS6, iPhone5 simulator
I just installed a new dev environment on a brand new machine - OS X 10.8.2 - Titanium SDK 2.1.3.GA - iOS6 - iPhone5 simulator and I appear to be unable to record audio in the same way as I have always done on another machine (with 5.1.1) It appears to complain that it cant create the audio file. A zero size file is creatd in the simulator's app Documents folder though, where the audio should be created. I'm getting : Error : AudioFileCreateWithURL failed (-50) It appears I'm not alone with the urgent issue! (I got the new machine to be able to submit an app!)
Just to add : This occurs on the simulator. It appears that on the device it's ok.
It seems that the simulator has trouble with the URL given to it having spaces and the URL needs to be escaped. If you run the project directly from XCode, it defaults to using a different "temp url" for the recorded audio and that one has no spaces. For me, that is: /var/folders/3q/vv7snyc13259jyb_795x2wmw0000gn/T as opposed to something like: "/Users/onlee/Library/Application Support/iPhone Simulator/" I followed the fix outlined here: http://lists.apple.com/archives/coreaudio-api/2010/Aug/msg00210.html and it works now in the simulator and the -50 error code is gone.
Hi Andrew, I was wondering if you adapted the fix for the URL you pass through JavaScript, or if you modified the native code? Is this something we could handle under the hood in Titanium? For now I've marked it as Fixed. Thanks!
Moving this to engineering for further evaluation and prioritization as we can reproduce this issue with the latest release.
Closing ticket as this version of Kitchen Sink is no longer supported.