FlutterRadioPlayer icon indicating copy to clipboard operation
FlutterRadioPlayer copied to clipboard

FRPCoreService has not been initialized yet

Open netmindz opened this issue 2 years ago • 5 comments

I have tried to take your example app, but I'm having issues where the play controls get out of sync.

For example, if i press stop, then play i get the attached error log.txt

netmindz avatar Apr 16 '23 13:04 netmindz

Can you check with the new update ?

Sithira avatar Apr 18 '23 05:04 Sithira

I might also try https://github.com/Sithira/FlutterRadioPlayer/pull/78 to see if the changes made to fix the initialization of the player resolves my issue

Also, did you see my PR for the compile error?

netmindz avatar Apr 18 '23 07:04 netmindz

The same issue remains with 2.0.2

netmindz avatar Apr 18 '23 08:04 netmindz

I have the same problem, when I hit stop it sends me an error

jorge-cuervo avatar Apr 21 '23 12:04 jorge-cuervo

@Sithira , relating to this issue.

It states in the readme

stop() - Will stop all the streaming audio streams and detaches itself from FOREGROUND SERVICE. You need to reinitialize to use the plugin again,

How do i do this.

I've tried using

widget.flutterRadioPlayer.initPlayer();

but have no luck , It looks as if the initialization is done at onCreate().

Any chance you could add to the readme to explain how to re-initialize the player after stop() has been called. I'm reluctant to use pause() and leave the player pulling data as users may leave this for potentially long periods before listening again.

Thanks for the library, it works well for me apart from this.

Russsgithub avatar Oct 12 '23 10:10 Russsgithub