Giter Club home page Giter Club logo

Comments (14)

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
The API injection mechanism we are using at the moment only supports Web pages. 
 We'll consider this as a future enhancement.

Original comment by [email protected] on 23 Aug 2013 at 10:53

  • Changed state: Acknowledged
  • Added labels: Type-Enhancement
  • Removed labels: Type-Defect

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Can you at least tell to us developers how to inject cast API into extensions 
manually?

Can we include full background script cast extension has in our own extension 
and modify it so it will work with cast?

Original comment by [email protected] on 24 Aug 2013 at 7:41

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
[deleted comment]

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
After making some research I found out that background_script.js already 
supports communication with extensions. 
Only thing that is currently unsupported is a way to add extension id to 
white-list for successful communication with Cast extension.

Currently in Cast extension version: 2.2013.10820.11008_0
If I add my extension Id to array "hl" on line: 13425 I am able to successfully 
fully control ChromeCast from extension.

Can you please add a way to white-list extensions for full support?

Original comment by [email protected] on 25 Aug 2013 at 10:43

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Thank you for your support of Chromecast.  We've just released a major update 
to the Google Cast SDK and will be closing your issue.

Take a look at http://googledevelopers.blogspot.com/ for more information.

Check out the Chrome Sender SDK guide here: 
https://developers.google.com/cast/docs/chrome_sender.

All you need to do now is include as follows.

<script type="text/javascript" 
src="https://www.gstatic.com/cv/js/sender/v1/cast_sender.js"></script>

Original comment by [email protected] on 3 Feb 2014 at 11:35

  • Changed state: Fixed

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
I don't think this should be re-opened. It's not really fixed. Just tried the 
new API in a packaged app. I stored cast_sender.js locally to work around CSP 
restrictions.

However cast_sender.js does access localStorage which is not available for 
packaged apps. When removing localStorage from cast_sender the API becomes 
available, but fails silently when calling requestSession()

The cast extension logs the following warning and does not show any UI:
 [cv2.CastService] [WARNING] only handle tab request now

I guess the UI depends on the extension popup window, which is not available 
for packaged apps.

Original comment by [email protected] on 4 Feb 2014 at 11:14

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
This needs to be reopened. 
The implementation defined in comment #5 does not work. 

It fails in chrome apps for two reasons. 
#1---The CSP issue
#2--- (when .js is stored locally) the localStorage api is not allowed. 

Comment #6 says the same thing, but since I haven't seen an update I felt it 
needed to be reiterated. 

Original comment by [email protected] on 8 Feb 2014 at 12:17

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Packaged apps are not currently supported.

Original comment by [email protected] on 8 Feb 2014 at 12:19

  • Changed state: WontFix

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Now that was lame move to set status to "WontFix" aka we don't care about 
packaged apps...

Original comment by [email protected] on 8 Feb 2014 at 7:23

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
It really sucks that chrome devs don't seem to want to support chrome. Makes 
tons of sense.

Original comment by [email protected] on 9 Feb 2014 at 2:05

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
it is a matter of priority, it is something that we want to get to, but 
currently there are more pressing items that need to be addressed first

Original comment by [email protected] on 9 Feb 2014 at 2:07

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
Agreed with @gapipro... Only one change to that JS file is needed to allow 
packed apps to be supported, and that's the use of the chrome.storage.local API 
instead of 'localStorage'... Oh, yeah, and a "chrome.cast.getDevices()" API to 
allow the packed app developer to display the list of devices inside the app 
instead of just launching the Cast extension, the way YouTube and Google Play 
Music/Movies, not to mention all the other developers that had access to the 
dev-preview SDK before the public SDK was released, already do it.

Original comment by Kenny.Strawn on 11 May 2014 at 6:30

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
It would be nice to see this issue upgraded from a "wontfix" to something a bit 
more optimistic as the project member points out its a "matter of priority" not 
inability. 

Original comment by [email protected] on 17 Jan 2015 at 7:22

from google-cast-sdk.

GoogleCodeExporter avatar GoogleCodeExporter commented on August 23, 2024
You guys make it so terrible difficult to program a good chromecast app. 
Incredible. 

Original comment by [email protected] on 7 Feb 2015 at 10:56

from google-cast-sdk.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.