Mirror receiver window - google-cast

I assume the Chromecast Chrome extension uses:
chrome.tabs.captureVisibleTab(..)
API call to mirror a tab, is there an equivalent API available on the receiver as I assume that Chrome extensions aren't permitted.
I should add the goal is to create a thumbnail of receiver content.

No, there is no such extension on the receiver side. You will not be able to capture any screenshot or things like that either, mainly to preserve the rights of the content owners.

Related

chromecast on chrome packaged app

I would like to add the ability to cast my chrome packaged app to a google chromecast device.
So far google states that all you have to do is add
to your page and the API will inject itself.
For me that doesn't happen. No code is injected.
Am I doing something wrong?
There doesn't seem to be a demo showing this type of capability.
EDIT:
I just wanted to clarify a bit. All that I would like to do is display my app to a screen.
I have no media. I simply want to display it exactly as the chrome extension in the chrome browser would.Therefore I would follow the directions for a sender only. The app is packaged so it is running only CSS/JS/HTML5 code. The app is designed to run offline.
Steps I've taken to cast:
1. I've added the extra bit to the HTML line:
2. I've followed the whitelisting, to the best of my understanding, by adding my "website address" to the chrome extension. So I've added the only two address that should matter.
127.0.0.1
192.168.1.106
There is a good chance Content Security Policy is blocking the implementation of the cast API being injected. I see that you've filed Issue 287254: Google cast (chromecast) ability for packaged apps, and suspect we will need to wait for it to be implemented in a packaged apps compliant way.
You must whitelist your device and your Chrome app. See here for more details:
https://developers.google.com/cast/whitelisting#whitelist-chrome

Google Chrome Extension for Transparent Tabs or Windows

Is it possible to create a browser extension that would allow page-controlled window opacity? Not so that various elements on the page are of a given opacity, but to allow one to see other windows (like the desktop) behind the browser page.
Thank you.
No, this is not possible in an extension. Such transparency would be handled at the window manager level, and would require platform-specific code. This means that either Chrome would have to add this feature and expose it as an extension API (currently no such feature exists), or you would have to write a plugin.

How Adobe Shadow Chrome Extension be able to catch dom changes without any relevant permissions in manifest?

Adobe release new interesting product - Adobe Shadow. And in its core is a chrome extension which listen for connection of a remote devices (its also interesting how this is done, but i think its might utilize own http service to communicate such request), but whats more interesting is that it listen for DOM, JavaScript and CSS changes (using chrome inspector for developers) and communicate this changes to othere devices. Yet in manifest this extension is only declare it was aware of only tabs switch activity - how this is possible?
You are incorrect about the Shadow Chrome Extension listening for DOM, JavaScript and CSS changes in the page. When you click on the Remote Inspection button in the Chrome Extension, we open a window to a weinre server and inject the required weinre javascript into the page on the device.The weinre window looks like Chrome Dev Tools because they both use WebInspector, which is part of WebKit.
Read More About This In The Shadow FAQ
Read more about weinre
The Shadow Chrome Extension doesn't listen to anything at the page level. It gets the URL to send out to devices from the tabs permission.
I've only had a quick look at the ("confidential" marked) code I recommend you take a look at the skylab.js file.
It appears they're primarily using WebSockets to make the calls to a service running on your machine at . I'm guessing this belongs to the Adobe Shadow fat client.
Perhaps because your call an already existing service that's running on the local machine Chrome does not require any additional permissions. I've searched the code and see no mention of optional permissions either.
This is very interesting as I imagine this could be a concern for security, but maybe only on machines which are already infected with malicious code.

Build Chrome Extension that receives voice input

I plan to build a Chrome Extension that allows users to navigate web pages via voice commands.
To do so, I plan to put my speech recognition program on a backend server that connects with clients via Chrome extension.
Is it possible? I know how to develop an extension, but would appreciate if you could show a way of receiving voice input.
You don't need to modify Chrome.
Until the HTML5 tag gets landed in Chrome, your only option right now is to use NPAPI and include the plugin into your Extension. For more information visit this page:
http://code.google.com/chrome/extensions/npapi.html
You would have to implement a JavaScript audio input API using C++ inside Chromium, being aware that you have to transfer data through the sandbox, then once exported you can use the new API in your extension.
A lot of groundwork has already been done on specifying the audio API, read the details over at W3C:
http://chromium.googlecode.com/svn/trunk/samples/audio/specification/specification.html
Which links to details of a special build of Chrome with some already built samples:
http://chromium.googlecode.com/svn/trunk/samples/audio/index.html

Problem about Chrome Extension

I try to write an extension and i saw the very restricted policy security.
I should create an extension that allows me to listen and download podcast from web. It is possible?
I use Chrome OS with VMWare, this OS has additional Api than Google Chrome Browser?
Thanks
Yes it is possible to have a content scripts that executes on every page looking for specific media content. The content page could send a request back to the extension to indicate it has found a media file and using the URL you could play it in an tag inside the extension.

Resources