apimall / chromiumembedded

Automatically exported from code.google.com/p/chromiumembedded
0 stars 1 forks source link

Add support for screen capture #1508

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I am attempting to use the screen sharing feature and testing against:

https://html5-demos.appspot.com/static/ ... share.html

Using the cefclient app with the CEF 3.2171.1979 build on 64-bit Mac, I am 
setting the following flags:
--enable-media-stream
--enable-usermedia-screen-capturing

Running that web page, when I click on the "Capture Your Screen" button, I get 
a blank box with a red border. It appears that the flags are honored, because 
without those flags I get an error: "Uncaught TypeError: undefined is not a 
function" when the script calls navigator.getUserMedia().

It's been difficult finding any recent references to screen sharing, and 
determining whether this is even expected to work with CEF.

Running in the debugger, it breaks with the following assertion failure:
FATAL:media_stream_manager.cc(1865)] Check failed: !devices.empty(). 

I took a look at the chrome source code, and it seems to require a prompting 
message box asking the user for permission if not running as an extension, but 
there appears to be no callback into CEF to allow for this.

Original issue reported on code.google.com by jlpoll...@gmail.com on 27 Jan 2015 at 9:12

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 5 Feb 2015 at 7:15

GoogleCodeExporter commented 9 years ago

Original comment by magreenb...@gmail.com on 11 Feb 2015 at 8:19