getUserMedia

Having problems with building or using the JCEF Java binding? Ask your questions here.

getUserMedia

Postby shannah » Tue Jul 14, 2020 3:40 pm

I'm loading web pages directly using HTML content encoded as data URLs. Is there any way to allow navigator.getUserMedia on such URLs, or do I need to host contents over HTTPS? I've tried the --enable-media-stream and --enable-usermedia-screen-capturing in the args array passed to CefApp.getInstance(), but these seem to have no effect. navigator.getUserMedia not available.
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: getUserMedia

Postby magreenblatt » Tue Jul 14, 2020 4:41 pm

https://developer.mozilla.org/en-US/doc ... tUserMedia
Code: Select all
A document loaded using a data:// or blob:// URL which has no origin (such as when one of these URLs is typed by the user into the address bar) cannot call getUserMedia().
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: getUserMedia

Postby shannah » Tue Jul 14, 2020 5:30 pm

Has anyone successfully worked around this using custom scheme handlers ? Or do I need to load a page off a remote server in my desktop app in order to access this functionality?
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am

Re: getUserMedia

Postby magreenblatt » Tue Jul 14, 2020 6:49 pm

magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: getUserMedia

Postby shannah » Wed Jul 15, 2020 12:21 pm

Thanks. I got it working using a ResourceHandler
shannah
Techie
 
Posts: 30
Joined: Wed Jul 08, 2020 8:01 am


Return to JCEF Forum

Who is online

Users browsing this forum: No registered users and 25 guests