Why does calling chrome.cast.initialize break the connection to the Chromecast device? -
i trying build custom chromecast sender/receiver application, can't seem connect device custom sender or chrome once custom sender page loaded.
the chromecast device appears functioning (i can cast tabs , youtube videos). however, when load custom sender, seems break chromes connection device. chromecast icon in chrome shows "no cast devices found".
i have found if comment out chrome.cast.initialize
, can see chromecast device again. there no errors reported in chrome debug console , i've commented out of code called event handlers related call , still have same problem. i've tried resetting chromecast device factory. i've tried few of network tweaks recommended in few other posts (though impression couldn't connect device @ all).
this working yesterday, mysteriously stopped. seems point might have done, thing changed in receiver app , since can't start, don't think that.
i got error before , solved closing re-openning chrome browser. if sure 100% js code works expected when calling chrome.cast.initialize (no error show in console mode got no chromecast extension found error), close chrome browser , re-open it. if in console, after calling chrome.cast.initialize, see line chromecast extension found :.... should able see chromecast device when clicking chromecast extension icon. if re-open browser not work, clear browser cache , try again.
hope helps.
Comments
Post a Comment