From afff8b9d7818fd5b5ec176a1dd2eac5e088cf0db Mon Sep 17 00:00:00 2001 From: Zeyu Dong Date: Mon, 26 Jun 2023 07:46:41 -0400 Subject: [PATCH] html: fix syntax problem in iceServers (#77) --- html/control.html | 6 +++--- html/webrtc.html | 2 +- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/html/control.html b/html/control.html index f96d2b9..a731801 100644 --- a/html/control.html +++ b/html/control.html @@ -754,11 +754,11 @@

Release

show(videoContainer); const iceServers = [ - [ { urls: ['stun:stun.l.google.com:19302'] } ] + { urls: ['stun:stun.l.google.com:19302'] } ]; fetch(webrtcURL, { - body: JSON.stringify({type: 'request'}), + body: JSON.stringify({type: 'request', iceServers: iceServers}), headers: {'Content-Type': 'application/json'}, method: 'POST' }).then(function(response) { @@ -819,4 +819,4 @@

Release

} }) - \ No newline at end of file + diff --git a/html/webrtc.html b/html/webrtc.html index 3020e57..08e6692 100644 --- a/html/webrtc.html +++ b/html/webrtc.html @@ -48,7 +48,7 @@