react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

"The operation couldn’t be completed. (OSStatus error 1954115647.)"

Open ArjunKarki opened this issue 2 years ago • 1 comments

const audio = new Sound(
  'https://storage.googleapis.com/chat_bucket_aso/2ihzd4q47l73wmvcb_2.976.mp3',
  null,
  error => {
    setLoadingAudio(false);
    if (error) {
      console.log('failed to load the sound', error);
      setError(true);
      return;
    }
    setDuration(hp.recorderTimeFormat(audio.getDuration()));
    setPlayingDuration(audio.getDuration());
  },
);

Works in android perfectly but got this error in ios.

ArjunKarki avatar Nov 05 '22 05:11 ArjunKarki

Use "React-native-blob-utils", then it will work.

chandu-abhi avatar Dec 16 '22 13:12 chandu-abhi