running webrtc on local pages - jcef

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

running webrtc on local pages - jcef

Postby omerjerk » Tue Jul 12, 2016 9:27 am

I've a local page called webrtc_test.html

I'm bundling it inside the jcef_app.app. So I open this webpage locally by hitting the url client://tests/webrtc_test.html

But unfortunately, I'm getting "getUserMedia() no longer works on insecure origins" error.
I've already tried all these arguments. Any idea how to deal with it?

realArgs.add("--enable-media-stream");
realArgs.add("--allow-file-access-from-files");
realArgs.add("--allow-running-insecure-content");
realArgs.add("--disable-web-security");
realArgs.add("--unsafely-treat-insecure-origin-as-secure");
realArgs.add("disable-web-security");
realArgs.add("allow-running-insecure-content");

any help would be appreciated.
omerjerk
Newbie
 
Posts: 4
Joined: Mon Jul 11, 2016 6:45 am

Re: running webrtc on local pages - jcef

Postby magreenblatt » Tue Jul 12, 2016 9:34 am

Try using "https" instead of "client" as the scheme.
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm

Re: running webrtc on local pages - jcef

Postby omerjerk » Tue Jul 12, 2016 11:23 am

it did not work.
omerjerk
Newbie
 
Posts: 4
Joined: Mon Jul 11, 2016 6:45 am

Re: running webrtc on local pages - jcef

Postby magreenblatt » Tue Jul 12, 2016 11:28 am

What did not work? Are you getting the same getUserMedia() error?
magreenblatt
Site Admin
 
Posts: 12409
Joined: Fri May 29, 2009 6:57 pm


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 57 guests