Commit Graph

10 Commits

Author SHA1 Message Date
Adrian Pascu 1142e7ac47 Remove usage of deprecated mozilla api
This API is no longer working in the current Firefox version (69)
There is also a similar discussion here: https://github.com/webrtc/samples/issues/302
2019-11-26 10:56:28 -05:00
Thart310 cff4f882f2 Update openface-demo.js 2019-06-24 07:41:31 -04:00
montag 37ba2ac982 TLS migration for demos/web (#260)
What does this PR do?

Minimally invasive migration to TLS for the http (8000) and websocket (9000) endpoints for the real time web demo.

Where should the reviewer start?

Install the demo like a normal install. During the install-deps.sh script it will prompt for questions to generate a local self-signed cert. Anything can be entered into the cert. Start the demo as normal but connect on https://domain:http_port instead of http.

How should this PR be tested?

The first step is the cert generation (added to install-deps.sh for convenience). The second step is ensuring the two endpoints are brought up. The next step is loading the web page and accepting the self-signed cert. Reloading the web app everything should now be secure, e.g. no errors or warnings and the video works as normal.

Any background context you want to provide?

I tried to be as minimal as possible so the changes tends to follow the existing structure rather than a refactor of anything major. With that said, SimpleHTTPServer doesn't work with TLS via the -m flag so that is now a short script. I updated all the html/js files to point to https/wss. I also updated the js for Firefox's change from navigator.mozGetUserMedia to navigator.mediaDevices.getUserMedia.

What are the relevant issues?

#75

Questions:

Do the docs need to be updated?
Yes. I updated the script's docs in demos/web but didn't make any changes outside of demos/web

Does this PR add new (Python) dependencies?
I don't think so.
2017-04-28 06:05:12 -04:00
Brandon Amos 9d1bd99579 Update copyright notices.
sed -i "/[Cc]opyright.*2015.*Carnegie Mellon University/s/2015/2015-2016/;"  $(git grep '[Cc]opyright.*Carnegie Mellon University'  | sed 's/:.*//' | uniq)
2016-01-13 14:52:52 -05:00
Brandon Amos 3e5be95a3c Web demo: Assume the HTTP and WebSocket servers are the same so the web demo works in Docker without any modifications. 2015-12-23 18:42:40 -05:00
Brandon Amos 09577c5d06 Automatically switch video feeds. 2015-11-26 15:21:18 -05:00
Brandon Amos f195085d70 Print to the browser's console on websocket error. 2015-10-31 17:12:47 -04:00
Brandon Amos 38660b5ef2 Demo: Show that the connection is local. 2015-10-17 14:24:19 -04:00
Brandon Amos 69586648e6 Refactor: facenet->openface. 2015-10-10 21:28:41 -04:00
Brandon Amos 312beca814 Refactor: examples->demos. 2015-09-29 18:32:59 -04:00