React-native-sound: Error loading http and https iOS, on Android works.

Created on 30 Dec 2017  路  2Comments  路  Source: zmxv/react-native-sound

let sound = new Sound("https://s3.sa-east-1.amazonaws.com/test/test.mp3",Sound.MAIN_BUNDLE, (error) => {
if (error) {
reject(new Error("Failed to load " + file));
return;
} sound.play( () => {
sound.release();
});
});

console error:

{code: "ENSOSSTATUSERRORDOMAIN2003334207", message: "The operation couldn鈥檛 be completed. (OSStatus error 2003334207.)", nativeStackIOS: Array(18), domain: "NSOSStatusErrorDomain", userInfo: {鈥}

Most helpful comment

For me Solution from
https://github.com/zmxv/react-native-sound/issues/324

Worked!!!

Check Andrfas's Answer

I think you should replace Sound.MAIN_BUNDLE with '' (empty string). And for iOS - add www.noiseaddicts.com to exception domains

All 2 comments

For me Solution from
https://github.com/zmxv/react-native-sound/issues/324

Worked!!!

Check Andrfas's Answer

I think you should replace Sound.MAIN_BUNDLE with '' (empty string). And for iOS - add www.noiseaddicts.com to exception domains

Was this page helpful?
0 / 5 - 0 ratings