Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

URGENT: Hangs when cannot connect to station url #62

Open
TechMindsYT opened this issue Jul 10, 2017 · 1 comment
Open

URGENT: Hangs when cannot connect to station url #62

TechMindsYT opened this issue Jul 10, 2017 · 1 comment

Comments

@TechMindsYT
Copy link

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
Copy link

Sarun1001 commented Sep 16, 2017

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants