zmxv / react-native-sound

React Native module for playing sound clips
MIT License
2.79k stars 748 forks source link

Hello, friend, Android has a problem using your playback #605

Closed QShengW closed 5 years ago

QShengW commented 5 years ago

:beetle: Description

I want Android to play mp3 :beetle: What have you tried?

:beetle: Please post your code:

const thisPlay = new Sound("http://image.mypays.cn/data/lsy/sound/300.mp3",null, e => {
      if (e) {
        console.log(e)
       //{extra: -2147483648, what: 1}
        return
      };
      thisPlay.play(() => thisPlay.release());
    });

{extra: -2147483648, what: 1} :bulb: Possible solution

Is your issue with...

Are you using...

Which versions are you using?

Does the problem occur on...

If your problem is happening on a device, which device?

QShengW commented 5 years ago

ios normal

QShengW commented 5 years ago

Android Local MP3 is OK, but Network MP3 is not.

QShengW commented 5 years ago

Is it about HTTP or HTTPS

QShengW commented 5 years ago

HTTPS should be used