thyagoluciano / flutter_radio

Radio station streaming example with ExoPlayer and Flutter.
GNU General Public License v3.0
86 stars 41 forks source link

Could we have a method for cancelling all current playing #24

Open lvhkhanh opened 5 years ago

lvhkhanh commented 5 years ago

I have a list to play. When tap on a list item, it stop previous playing and start new playing

                      if (play) {
                        FlutterRadio.stopAll(); // <= Need some like this :)
                        FlutterRadio.play(url: widget.url);
                      } else {
                        FlutterRadio.pause(url: widget.url);
                      }
hinthorozu commented 4 years ago

I want me too :)