From d353fdce7cb957aa0f5d9d51d0ad4205c96e156c Mon Sep 17 00:00:00 2001 From: ‘liusuyi’ <1951119284@qq.com> Date: 星期六, 21 十月 2023 11:57:12 +0800 Subject: [PATCH] 1、流媒体升级1.2.0,修改部分forest接口 2、登录设备判断编码自动配置转码 3、增加sdk聚焦模式切换 4、增加sdk视场角获取并定时上传 --- ard-work/src/main/resources/templates/preview.html | 6 ++++++ 1 files changed, 6 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/templates/preview.html b/ard-work/src/main/resources/templates/preview.html index 609e256..f3ec144 100644 --- a/ard-work/src/main/resources/templates/preview.html +++ b/ard-work/src/main/resources/templates/preview.html @@ -190,6 +190,9 @@ console.log("requesting ICE servers"); fetch(this.wurl, { method: 'OPTIONS', + headers: { + 'Referer': this.wurl, + }, }) .then((res) => this.onIceServers(res)) .catch((err) => { @@ -229,6 +232,7 @@ method: 'POST', headers: { 'Content-Type': 'application/sdp', + 'Referer': this.wurl, }, body: offer.sdp, }) @@ -296,7 +300,9 @@ headers: { 'Content-Type': 'application/trickle-ice-sdpfrag', 'If-Match': this.eTag, + 'Referer': this.wurl, }, + body: generateSdpFragment(this.offerData, candidates), }) .then((res) => { -- Gitblit v1.9.3