react-native-sound
react-native-sound copied to clipboard
sound.getDuration() on android returns 0
sound = new Sound(
url,
(error) => {
if (error) {
console.log(sound error file ${JSON.stringify(error)}
);
} else {
console.log(sound ${sound.getDuration()}
);
}
}
);
Audio playback works but duration is 0.
I'm having the same issue on 0.11.0
same problem loading .webm
file from the url link. but working fine on .mp3
file format.
I am having same issue .mp3 file
I have the same problem with .webm files.