zmxv / react-native-sound

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

sound.getDuration() on android returns 0 #647

Open emmanuelfrancis opened 4 years ago

emmanuelfrancis commented 4 years ago

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.

brmk commented 4 years ago

I'm having the same issue on 0.11.0

bizaybsnt commented 4 years ago

same problem loading .webm file from the url link. but working fine on .mp3 file format.

SounakB commented 4 years ago

I am having same issue .mp3 file

m-zaharieva commented 1 year ago

I have the same problem with .webm files.