iammert / RadioPlayerService

Android service library which uses AAC Player. Ready to use Radio Player Service.
254 stars 91 forks source link

URGENT: Hangs when cannot connect to station url #62

Open TechMindsYT opened 7 years ago

TechMindsYT commented 7 years ago

Hi there, my app (using demo) seems to HANG when it cannot connect to the station URL. For example, if the station is not broadcasting and the server is not running.

How can I check if the station server is running before attempting to connect? Or, how can I have a callback which notifies me the RadioPlayerService could not connect?

Where is the timeout setting? (if available) Thanks!

Sarun1001 commented 6 years ago

its a serious issue. Player failed to respond after a failed URL loading. "W/LOG: Cannot set the ICY URLStreamHandler - maybe already set ? - java.lang.Error: Factory already set" - Source class (RadioPlayerService.java) Not responding to any commands after this. already tried

" try { mRadioManager.disconnect(); } catch (Exception e) { //Do nothing, apparently we where not connected in the first place. } RadioManager.flush();

    mRadioManager = RadioManager.with(mAct);
    mRadioManager.connect();
    mRadioManager.registerListener(this);
    mRadioManager.registerListener(NotificationUpdater.getStaticNotificationUpdater(mAct.getBaseContext()));"

@freakybwoy Hi buddy did u find any solutions for this problem. Guys please fix this issue.