Why is the google chromecast extension not injecting API on a whitelisted domain -
i got couple of domains whitelisted. let's a.mydomain.com , b.mydomain.com
i went developer options in chromecast extension , whitelisted mydomain.com , added data-cast-api-enabled=”true” html tag
at point, expecting extension inject api_script.js (like 1 seeing on youtube , netflix)
what missing here?
there 2 whitelisting procedures listed in developer documentation.
the first device whitelisting (under "whitelisting receiver device"). during process provide 1 or 2 target urls google cast team, , generate application id you. when launching session cast api device (android, ios, or chrome browser extension installed) provide string "<applicationid>_<urlnumber>"
, receiver select open receiver page located @ url associated string.
the second whitelisting (under "whitelisting chrome apps" @ link above) specific developing sender app chrome extension, , configured within browser. chrome extension inject cast api specific sender pages currently, allows developers whitelist domain sender pages on.
- be sure running chrome version 28 or later.
- if haven't restarted chrome in while may running older version; restarting update chrome automatically.
- in chrome address field, enter chrome://extensions, , check developer mode checkbox enable developer mode.
- install chrome extension google cast.
- on cast extension icon in browser's upper right corner (next address field), right-click , select options.
- the google cast extension options page opens in new tab.
- on blue cast icon, in page's upper left corner, click 4 (4) times.
- the developer settings appear.
- in cast sdk additional domains field, enter application's domain, example, "www.mydomain.com" , click add.
code application's html tag follows:
<html data-cast-api-enabled=”true”>
reload application's page.
Comments
Post a Comment