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 | 8 ++++++++ 1 files changed, 8 insertions(+), 0 deletions(-) diff --git a/ard-work/src/main/resources/templates/preview.html b/ard-work/src/main/resources/templates/preview.html index ee775ac..f3ec144 100644 --- a/ard-work/src/main/resources/templates/preview.html +++ b/ard-work/src/main/resources/templates/preview.html @@ -107,6 +107,8 @@ </div> <script> + console.log(RTCRtpReceiver.getCapabilities('video').codecs) + console.log(RTCRtpReceiver.getCapabilities('audio').codecs) //whep鎿嶄綔鏂规硶 const linkToIceServers = (links) => ( (links !== null) ? links.split(', ').map((link) => { @@ -188,6 +190,9 @@ console.log("requesting ICE servers"); fetch(this.wurl, { method: 'OPTIONS', + headers: { + 'Referer': this.wurl, + }, }) .then((res) => this.onIceServers(res)) .catch((err) => { @@ -227,6 +232,7 @@ method: 'POST', headers: { 'Content-Type': 'application/sdp', + 'Referer': this.wurl, }, body: offer.sdp, }) @@ -294,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