From 01b0e969b335d6c52ce09f9ec4ef55eb520e2ec1 Mon Sep 17 00:00:00 2001 From: Kamil Trzcinski Date: Wed, 14 Jun 2023 00:18:56 +0200 Subject: [PATCH] webrtc: always use `iceServers` instead of `ice_servers` --- html/control.html | 4 ++++ html/webrtc.html | 8 +++----- output/webrtc/webrtc.cc | 2 +- 3 files changed, 8 insertions(+), 6 deletions(-) diff --git a/html/control.html b/html/control.html index 18f4fc0..f96d2b9 100644 --- a/html/control.html +++ b/html/control.html @@ -753,6 +753,10 @@ stopStream(); show(videoContainer); + const iceServers = [ + [ { urls: ['stun:stun.l.google.com:19302'] } ] + ]; + fetch(webrtcURL, { body: JSON.stringify({type: 'request'}), headers: {'Content-Type': 'application/json'}, diff --git a/html/webrtc.html b/html/webrtc.html index d643a3b..3020e57 100644 --- a/html/webrtc.html +++ b/html/webrtc.html @@ -47,10 +47,8 @@