[mirotalk] - fix typo
This commit is contained in:
+4
-7
@@ -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
|
||||
@@ -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
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user