From d803609b8a2e43afcf5921f42f29ce7f6e68fb84 Mon Sep 17 00:00:00 2001 From: aijinhui <aijinhui> Date: 星期三, 08 十一月 2023 17:02:46 +0800 Subject: [PATCH] Merge remote-tracking branch 'origin/master' --- ard-work/src/main/resources/templates/preview.html | 7 ++++++- 1 files changed, 6 insertions(+), 1 deletions(-) diff --git a/ard-work/src/main/resources/templates/preview.html b/ard-work/src/main/resources/templates/preview.html index 609e256..273683e 100644 --- a/ard-work/src/main/resources/templates/preview.html +++ b/ard-work/src/main/resources/templates/preview.html @@ -110,6 +110,10 @@ console.log(RTCRtpReceiver.getCapabilities('video').codecs) console.log(RTCRtpReceiver.getCapabilities('audio').codecs) //whep鎿嶄綔鏂规硶 + const restartPause = 2000; + const unquoteCredential = (v) => ( + JSON.parse(`"${v}"`) + ); const linkToIceServers = (links) => ( (links !== null) ? links.split(', ').map((link) => { const m = link.match(/^<(.+?)>; rel="ice-server"(; username="(.*?)"; credential="(.*?)"; credential-type="password")?/i); @@ -236,7 +240,7 @@ if (res.status !== 201) { throw new Error('bad status code'); } - // this.eTag = res.headers.get('ETag'); + // this.eTag = res.headers.get('ETag'); this.eTag = res.headers.get("ETag") || res.headers.get('E-Tag'); return res.text(); }) @@ -297,6 +301,7 @@ 'Content-Type': 'application/trickle-ice-sdpfrag', 'If-Match': this.eTag, }, + body: generateSdpFragment(this.offerData, candidates), }) .then((res) => { -- Gitblit v1.9.3