KirovBvulgaru / google-cast-sdk

Automatically exported from code.google.com/p/google-cast-sdk
0 stars 0 forks source link

window.__onGCastApiAvailable never gets fired in non-chrome browser #158

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. implement global __onGCastApiAvailable callback
2. load page in non-chrome web browser

What is the expected output? What do you see instead?
__onGCastApiAvailable(false, ...) should be called

What version of the product are you using? On what operating system?
newest beta chrome extension

Please provide any additional information below.
this is related to issue #124 where I already posted a workaround for this 
(comment 4)

Original issue reported on code.google.com by p...@zattoo.com on 21 Feb 2014 at 1:27

GoogleCodeExporter commented 8 years ago
No browsers other than Chrome work because no extension and tab 
capturing/DIAL/mDNS supports in other browsers.

Original comment by shawns...@google.com on 21 Feb 2014 at 7:07

GoogleCodeExporter commented 8 years ago
I imagine anyone who is interested can easily detect the browser and if it is 
not chrome take one action and if it is chrome, then take advantage of 
__onGCastApiAvailable, so there is really no need to extend that.

Original comment by anad...@google.com on 21 Feb 2014 at 7:15

GoogleCodeExporter commented 8 years ago
but which api call should I use then to find out if the browser is capable of 
google cast/is the chrome browser? I think the condition "!window.chrome" is 
not very reliable and browser detection is considered bad practice.

Original comment by p...@zattoo.com on 21 Feb 2014 at 7:15

GoogleCodeExporter commented 8 years ago
If you do a Google search, you'll find your answer; that is a very common task 
for pages to figure out the agent type of the browser.

Original comment by anad...@google.com on 21 Feb 2014 at 7:23