react-native-sound icon indicating copy to clipboard operation
react-native-sound copied to clipboard

sound.getDuration() on android returns 0

Open emmanuelfrancis opened this issue 5 years ago • 4 comments

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.

emmanuelfrancis avatar Feb 20 '20 11:02 emmanuelfrancis

I'm having the same issue on 0.11.0

brmk avatar Mar 02 '20 10:03 brmk

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

bizaybsnt avatar Jun 09 '20 08:06 bizaybsnt

I am having same issue .mp3 file

SounakB avatar Jun 15 '20 04:06 SounakB

I have the same problem with .webm files.

m-zaharieva avatar Dec 05 '22 13:12 m-zaharieva