Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-16209] iOS: Kitchen Sink : Cannot stop audio recording

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionInvalid
Resolution Date2017-05-23T20:30:26.000+0000
Affected Version/sn/a
Fix Version/sn/a
ComponentsiOS
LabelscreateAudioRecorder, ios, iphone, stop()
ReporterStephen Page
AssigneeEric Merriman
Created2012-08-09T05:23:24.000+0000
Updated2017-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.

Comments

  1. Amuktha Akkinepally 2012-08-13

    This works fine on this end with the environment specifications.
  2. Tim Poulsen 2012-10-03

    Fails for me using Ti SDK 2.1.3.v20120927181611 and 3.0.0.v20121002103353, Xcode 4.5, iOS6, iPhone5 simulator
  3. kosso 2012-10-05

    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!)
  4. kosso 2012-10-05

    Just to add : This occurs on the simulator. It appears that on the device it's ok.
  5. Andrew Tokmakoff 2012-11-05

    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.
  6. Daniel Sefton 2013-03-20

    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!
  7. Ritu Agrawal 2014-01-16

    Moving this to engineering for further evaluation and prioritization as we can reproduce this issue with the latest release.
  8. Lee Morris 2017-05-23

    Closing ticket as this version of Kitchen Sink is no longer supported.

JSON Source