diff options
-rw-r--r-- | package-lock.json | 22 | ||||
-rw-r--r-- | package.json | 1 | ||||
-rw-r--r-- | public/scripts/chat.js | 1 | ||||
-rw-r--r-- | public/scripts/main.js | 1 |
4 files changed, 24 insertions, 1 deletions
diff --git a/package-lock.json b/package-lock.json index 3770562..741998b 100644 --- a/package-lock.json +++ b/package-lock.json @@ -9555,6 +9555,14 @@ "integrity": "sha512-OfWGQTb9vnwRjwtA2QwpG2ICclHC3pgXZO5xt8H2EfgDquO0qVdSb5T88L4qJVAEugbS56pAuV4XZM58UX8ulw==", "dev": true }, + "rtcpeerconnection-shim": { + "version": "1.2.15", + "resolved": "https://registry.npmjs.org/rtcpeerconnection-shim/-/rtcpeerconnection-shim-1.2.15.tgz", + "integrity": "sha512-C6DxhXt7bssQ1nHb154lqeL0SXz5Dx4RczXZu2Aa/L1NJFnEVDxFwCBo3fqtuljhHIGceg5JKBV4XJ0gW5JKyw==", + "requires": { + "sdp": "^2.6.0" + } + }, "run-async": { "version": "2.3.0", "resolved": "https://registry.npmjs.org/run-async/-/run-async-2.3.0.tgz", @@ -10034,6 +10042,11 @@ } } }, + "sdp": { + "version": "2.9.0", + "resolved": "https://registry.npmjs.org/sdp/-/sdp-2.9.0.tgz", + "integrity": "sha512-XAVZQO4qsfzVTHorF49zCpkdxiGmPNjA8ps8RcJGtGP3QJ/A8I9/SVg/QnkAFDMXIyGbHZBBFwYBw6WdnhT96w==" + }, "seek-bzip": { "version": "github:openpgpjs/seek-bzip#3aca608ffedc055a1da1d898ecb244804ef32209", "from": "github:openpgpjs/seek-bzip", @@ -11390,6 +11403,15 @@ "integrity": "sha512-YQ+BmxuTgd6UXZW3+ICGfyqRyHXVlD5GtQr5+qjiNW7bF0cqrzX500HVXPBOvgXb5YnzDd+h0zqyv61KUD7+Sg==", "dev": true }, + "webrtc-adapter": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/webrtc-adapter/-/webrtc-adapter-7.2.0.tgz", + "integrity": "sha512-+QsCKlCTjLVKKhkClQwXXgalyehiIzYcwKL7X2bS8cE/1paG44P8kW3kXOGMDJVy/1rnYMRz1ukYmobmGRw+4w==", + "requires": { + "rtcpeerconnection-shim": "^1.2.15", + "sdp": "^2.9.0" + } + }, "whatwg-encoding": { "version": "1.0.5", "resolved": "https://registry.npmjs.org/whatwg-encoding/-/whatwg-encoding-1.0.5.tgz", diff --git a/package.json b/package.json index 24bfa92..c48e75a 100644 --- a/package.json +++ b/package.json @@ -52,6 +52,7 @@ "pug": "^2.0.0-beta11", "pug-cli": "^1.0.0-alpha6", "rimraf": "^2.6.2", + "webrtc-adapter": "^7.2.0", "xkcd-password": "^2.0.0" }, "devDependencies": { diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 87b6589..056dc09 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -183,7 +183,6 @@ function chat() { } function getMediaStream(callback) { - navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; navigator.getUserMedia( {audio: true, video: {width: 1280, height: 720}}, stream => callback(stream), diff --git a/public/scripts/main.js b/public/scripts/main.js index 0d1ac3a..ff904dd 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -9,6 +9,7 @@ * This file only pulls all dependencies together * so it is compileable by browserify */ +require('webrtc-adapter/dist/adapter_core'); require('@fortawesome/fontawesome-free/js/all.min'); require('./peer'); require('./chat'); |