[mirotalk] - fix typo

This commit is contained in:
Miroslav Pejic
2021-03-13 08:58:00 +01:00
parent 41a32798b5
commit 663df189c4
3 changed files with 9 additions and 16 deletions
+4 -7
View File
@@ -1,21 +1,18 @@
# git folder
.git
# NPM
# npm
node_modules
npm-debug.log
# Package
# package
package-lock.json
# Testing
.nyc_output
# Mac
# mac
.DS_Store
# cache
.cache
# env
# personal env
.env
+4 -1
View File
@@ -81,6 +81,8 @@ var iceServers = [
* Start Local Server with ngrok https tunnel (optional)
*/
server.listen(PORT, null, function () {
let localHost = "http://localhost:" + PORT;
console.log(
`%c
@@ -98,9 +100,10 @@ server.listen(PORT, null, function () {
if (ngrokEnabled == "true") {
ngrokStart();
}
// init settings
console.log("settings", {
http: "http://localhost:" + PORT,
http: localHost,
iceServers: iceServers,
ngrok: {
ngrok_enabled: ngrokEnabled,
+1 -8
View File
@@ -290,14 +290,7 @@ function initPeer() {
console.log("iceServers", iceServers[0]);
// https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection
peerConnection = new RTCPeerConnection(
{ iceServers: iceServers },
{
optional: [
{ DtlsSrtpKeyAgreement: true }, // is required for Chrome and Firefox to interoperate.
],
}
);
peerConnection = new RTCPeerConnection({ iceServers: iceServers });
// collect peer connections
peers[peer_id] = peerConnection;