zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.78k stars 747 forks source link

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

Open ArjunKarki opened 1 year ago

ArjunKarki commented 1 year ago
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.

chandu-abhi commented 1 year ago

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