Sunday 15 June 2014

java - Is there such a thing as too many chromecast devices on one network? -



java - Is there such a thing as too many chromecast devices on one network? -

i have app uses castcompanionlibrary , i'm having weird issue. on little network 1 chromecast device application able observe , show mediarouteritem.

although, had beta tester not able of devices detected, icon never shows them. come find out connected larger, shared network multiple chromecast devices connected it. said able observe of chromecast devices other apps such youtube , localcast though. weird because leads me believe maybe i'm not doing right discovery process.

unfortunately, not in position can have network multiple chromecast devices debug issue, wondering if else had similar issue? or there method have phone call castcompanionlibrary i'm missing?

edit

i using app_id has been published, know isn't whitelisting issue.

the code utilize discovery completed castcompanionlibrary. utilize 1 time oncastdevicedetected() callback called:

mcastconsumer = new videocastconsumerimpl() { @override public void onfailed(int resourceid, int statuscode) { } @override public void onconnectionsuspended(int cause) { log.d(tag, "onconnectionsuspended() called cause: " + cause); } @override public void onconnectivityrecovered() { } @override public void oncastdevicedetected(final mediarouter.routeinfo info) { if (!myapplication.isftushown(home.this)) { myapplication.setftushown(home.this); log.d(tag, "route visible: " + info); new handler().postdelayed(new runnable() { @override public void run() { if (mediaroutemenuitem.isvisible()) { log.d(tag, "cast icon visible: " + info.getname()); //showftu(); } } }, 1000); } } };

myapplication.class:

public static boolean isftushown(context ctx) { sharedpreferences sharedpref = preferencemanager.getdefaultsharedpreferences(ctx); homecoming sharedpref.getboolean(ftu_shown_key, false); } public static void setftushown(context ctx) { sharedpreferences sharedpref = preferencemanager.getdefaultsharedpreferences(ctx); sharedpref.edit().putboolean(ftu_shown_key, true).commit(); }

java android chromecast google-cast

No comments:

Post a Comment