From 748ab31dc10c24dd4cdfffdcbc39527d1f79ae12 Mon Sep 17 00:00:00 2001 From: zhangnaisong <2434969829@qq.com> Date: 星期一, 05 二月 2024 16:20:38 +0800 Subject: [PATCH] 三一车辆追踪加入预推送位置提交 --- ard-work/src/main/resources/templates/preview.html | 9 ++++++++- 1 files changed, 8 insertions(+), 1 deletions(-) diff --git a/ard-work/src/main/resources/templates/preview.html b/ard-work/src/main/resources/templates/preview.html index ee775ac..273683e 100644 --- a/ard-work/src/main/resources/templates/preview.html +++ b/ard-work/src/main/resources/templates/preview.html @@ -107,7 +107,13 @@ </div> <script> + 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); @@ -234,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(); }) @@ -295,6 +301,7 @@ 'Content-Type': 'application/trickle-ice-sdpfrag', 'If-Match': this.eTag, }, + body: generateSdpFragment(this.offerData, candidates), }) .then((res) => { -- Gitblit v1.9.3