The operation couldn’t be completed. (OSStatus error -10875.)
See original GitHub issueHello, guys. I have the following error when trying to play a sound. I will attach an image of the error below. Here is my code:
import Sounddd from 'react-native-sound';
const sTest = new Sounddd('test.mp3', Sounddd.MAIN_BUNDLE, (error) => {
if (error) {
console.log('failed to load the sound', error);
return;
}
// loaded successfully
console.log('duration in seconds: ' + sTest.getDuration() + 'number of channels: ' + sTest.getNumberOfChannels());
});
sTest.play((success) => {
if (success) {
console.log('successfully finished playing');
} else {
console.log('playback failed due to audio decoding errors');
}
});
Issue Analytics
- State:
- Created 7 years ago
- Comments:22
Top Results From Across the Web
The operation couldn't be completed. (OSStatus error -10875.)
I add NSAllowsArbitraryLoads(YES) to Info.plist, and then is work fine. 3 jiabinxu, ...
Read more >The operation couldn't be completed (OSStatus error -10875)
The operation couldn't be completed (OSStatus error -10875)
Read more >The operation couldn't be completed (OSStatus error 1119.)
This message comes after a while when connecting the iPhone XS Max to Macbook with 10.15. Any ideas, how to get the iPhone...
Read more >React-Native Audio won't play on IOS Simulator (OSStatus ...
This error occurs when you are trying to access a file which is not present in the specified folder or can not be...
Read more >OSStatus — Apple API Errors
Look up Apple API error codes, for Mac OS X, iOS, watchOS, and tvOS. ... 10, Due to the current protection policy in...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Hi for what it’s worth, I’ve been getting this error and after rolling my project back to earlier commits I discovered that sound stopped working after I changed the project’s “Display Name” to something with a space in it. Going back to a name without spaces made it work again.
@zakster12 had the same problem related to the audio path , made it work by using
const requireAudio = require('./test.mp3');