Comments (14)
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.
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.
[deleted comment]
from google-cast-sdk.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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.
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)
- Chromecast/Slingplayer Corruption HOT 3
- Chromecast keeps buffering HOT 5
- Chrome receiver app crashes continuously HOT 8
- unexpected EXT-X-MEDIA-SEQUENCE: state 2 HOT 2
- Queueing not supported in Chrome browser on IOS? HOT 4
- Can't install cast extension on ipad4 - no install button HOT 2
- Google cast don't show videos if the TV language UI is hebrew HOT 3
- iOS v2.10.1 .framework size is 139mb while v2.10.0 was 14mb HOT 4
- Guestmode in iOS doesn't seem to work HOT 4
- Support for Bitcode HOT 1
- Failed to load resource www-embed-player.js:603 HOT 1
- crossdomain.xml support on Chromecast would greatly help with migration from a flash-based infrastructure HOT 2
- HSS stream duration == 0 HOT 2
- delegate method deviceDidChange is called quite infrequent HOT 3
- CORS headers are not send when provided m3u8 playlist urls results in a redirect HOT 3
- On iOS i see intermittent crashes - "[GCKCastSecureSocket startSSL]: message sent to deallocated instance" HOT 1
- [GCKDeviceScannerListener deviceDidChange:] isn't called that often on iOS HOT 1
- cast_sender.js www-embed-player.js:604 net::ERR_FAILED HOT 2
- Black screen is shown after trying to play live DRM content HOT 3
- Chromecast for android ver 3.2.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from google-cast-sdk.