Multiple audio stream

Hi. My app uses the cordova-audio-stream-plugin, wich is based on the cordova-media-plugin, I think.
I could setup 3 shoutcast radio stations. Each one has its own controller, service and html file. All of them are working pretty fine, but I need to stop one of them manually before playing the other radio.
I was wondering if there is a way to setup the controller so that current radio stops automatically when the other radio starts to play.

My controller is like this:

var stream;

function play() {
  if (window.Stream) {
    stream = new window.Stream('http://radio1.ip.address:port/');
    stream.play();
  }

function pause() {
  vm.info = null;
  $interval.cancel(timer);
  if (!stream) {
    return;
  }
  stream.stop();
  window.location.reload();
}

If someone had to deal with this issue or know how to handle with this, will appreciate very much any help.

Hello afujita

I have the same Problem!
I am trying to find a streaming app for about 10 different audiostreams.
Please can you give me your source code, the complete ionic app that i can try to run my 10 different audiostreams.
My problem is that all have different protocols, is this possible with your app?

Here are my Radiostations i need in the app:

OKiTALK 1 – Hier reden die Bürger
http://stream.okitalk.com:8001/studio1

OKiTALK 2 – 24h Live Talk
http://stream.okitalk.com:8001/studio2

OKiTALK 3 – Der Talk von Mensch zu Mensch
http://stream.okitalk.com:8001/studio3

OKiTALK 4 - Studio 4
http://stream.okitalk.com:8001/studio4

RadioSOL
http://uk2.internet-radio.com:8023/stream2.m3u

Radio Utopie
http://176.9.102.174:8000/listen.pls

CROPfm
http://cropfm.at:8000/cropfm/cropfm.ogg.m3u

LDS Radio
http://82.165.148.201:2199/tunein/ldsr11.pls
http://82.165.148.201:2199/tunein/ldsr11.asx
http://82.165.148.201:2199/tunein/ldsr11.qtl

And more…

Do you think this is possible with your app?

Thank you very much, kindly regards from Austria
Jerome