tlenclos / react-native-audio-streaming

iOS & Android react native module to play an audio stream, with background support and media controls
MIT License
781 stars 255 forks source link

Doesn't play my URLs #100

Open hawkson-lemuel opened 7 years ago

hawkson-lemuel commented 7 years ago

Hi. Everything works well when I stream music with the test URL you provided but when I use my own URL, it doesn't stream. This is my code. Am I doing something wrong or is it not able to handle URLs with capital letters?

 playSong = () => {
        // const url = "http://lacavewebradio.chickenkiller.com:8000/stream.mp3";
        const url = "http://assist.mp3rover.com/wp-content/uploads/2017/06/Dada-Kwabena-Ft-Shatta-Rako-Kofi-B-Ice-Cream-www.urbanroll.net_.mp3";
        // const url = this.state.mp3Url;
        console.log("song being played ", url);
        ReactNativeAudioStreaming.play(url, { showIniOSMediaCenter: true, showInAndroidNotifications: true });
    }
jose920405 commented 6 years ago

+1.. Works perfect for ios but not works in android

cinder92 commented 6 years ago

+1 its because this plugin does not support all streaming formats :/