I use react-native-notification-sounds to get the sound list, it return the sound path: content://media/internal/audio/media/233. when i try to use that path, it shown an error message resource not found
Please post your code:
here is my code
import NotificationSounds from 'react-native-notification-sounds';
import Sound from 'react-native-sound';
NotificationSounds.getNotifications('alarm').then(alarmList => {
// content://media/internal/audio/media/233
const sound = new Sound(alarmList[0].url, '', (error) => {
if (error) {
console.log('failed to load the sound', error);
return;
}
});
});
Description
I use
react-native-notification-sounds
to get the sound list, it return the sound path:content://media/internal/audio/media/233
. when i try to use that path, it shown an error messageresource not found
Please post your code:
here is my code
Is your issue with...
Are you using...
react-native run-android
)Which versions are you using?
Does the problem occur on...
If your problem is happening on a device, which device?