thyagoluciano / flutter_radio

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

In debug mode you can hear double audio #21

Open yeikel16 opened 5 years ago

yeikel16 commented 5 years ago

By restarting the app in debug mode you can hear double audio, one from the other. I tried to wrap the FlutterRadio class in a Singlenton, but it does not work.

prasantd commented 4 years ago

You may need to check your location of audio start. See whenever widget is recreating you are not creating one more audio player.

erollgorci commented 3 years ago

Make sure to not place await FlutterRadio.audioStart(); inside the build method of the widget.