react-native-audio-recorder-player icon indicating copy to clipboard operation
react-native-audio-recorder-player copied to clipboard

Facing issue in iOS `CreateDataFile failed` and `Couldn't create a new audio file object`

Open darshil-evolution opened this issue 1 year ago • 4 comments

Not able to recored the audio in iOS. Getting errors in xcode consloe CreateDataFile failed and Couldn't create a new audio file object. In android working perfect. When I am giving just name in path like audioFile.acc it's working fine but when using RNFS path that time getting error.

  • "react-native-audio-recorder-player": "^3.6.5"
  • "react-native": "0.73.0"
  • IOS

Expected behavior: I want to store audio on RNFS.DocumentDirectoryPath Actual behavior: Error starting recording: [Error: Error occured during initiating recorder]

  const currentDate = generateUniqueString().toString();
    const name = `${currentDate}.acc`;
const path = RNFS.DocumentDirectoryPath + `/${name}`;
await audioRecorderPlayer.startRecorder(path, audioSet, meteringEnabled);

darshil-evolution avatar Jan 11 '24 12:01 darshil-evolution

Still on my list, did a couple of upgrades since then. Will have to take this from zero and update this PR

williamdes avatar Sep 06 '23 18:09 williamdes

@williamdes can you retry OPNsense 24.1? We made some changes in zfs handling, see https://github.com/opnsense/core/commit/d766ae211c0ab268a038c92c2fedde3bcda96017 .

AdSchellevis avatar Feb 15 '24 10:02 AdSchellevis

Sure, I will upgrade my firewalls and report back on writes

williamdes avatar Feb 15 '24 11:02 williamdes