werthad / cordova-audio-stream-plugin

Cordova audio stream plugin. You can read radio feed with it (old version with android)

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cordova-audio-stream-plugin

Basic cordova media plugin not allow to play radio audio stream on ios. This cordova plugin allow you to read a live radio stream

The android part of this plugin is from https://github.com/apache/cordova-plugin-media, I don't modify it

#Installation Run cordova plugin add https://github.com/werthad/cordova-audio-stream-plugin.git

#Use it my_stream = new Stream("http://your_live_radio_streeam", onSuccess, onError); // Play audio my_media.play(); function onSuccess() { console.log("playAudio():Audio Success"); } function onError(error) { alert('code: ' + error.code + '\n' + 'message: ' + error.message + '\n'); }

You can also stop the music with my_media.stop();

About

Cordova audio stream plugin. You can read radio feed with it (old version with android)

License:Apache License 2.0


Languages

Language:Java 84.8%Language:Objective-C 9.0%Language:JavaScript 6.2%