So Not sure what I am doing wrong, or if this is a known bug. But it seems that me using the following code does not change stream and play stream.
I am noticing it seem to be default to pause no matter what:
I/javaClass(25595): Attaching player as a foreground notification...
I/javaClass(25595): Received meta: ICY: title="Supernal S01E01 Part 2", url="null", rawMetadata.length="37"
I/javaClass(25595): Pushing Event: flutter_radio_paused
I/javaClass(25595): onPlayerStateChanged: PAUSED
I/javaClass(25595): Received status: flutter_radio_paused
I/javaClass(25595): Attaching player as a foreground notification...
instead I still have to manually click the play pause button.
Future<void> changestation() async{
try {
await _flutterRadioPlayer.setUrl('http://stream.radiomedia.com.au:8015/stream', "false");
await _flutterRadioPlayer.play();
} on PlatformException {
print("Exception occurred while trying to register the services.");
}
}
So Not sure what I am doing wrong, or if this is a known bug. But it seems that me using the following code does not change stream and play stream.
I am noticing it seem to be default to pause no matter what:
instead I still have to manually click the play pause button.
Full code: