From af75ade1f36ae099d454ffa4f052b704cf7e02e1 Mon Sep 17 00:00:00 2001 From: lixuliang <lixuliang_hd@126.com> Date: 星期五, 19 一月 2024 10:16:35 +0800 Subject: [PATCH] 最新 --- static/video/video.html | 43 +++++++++++++++++++++++-------------------- 1 files changed, 23 insertions(+), 20 deletions(-) diff --git a/static/video/video.html b/static/video/video.html index a2c1371..de0a0a3 100644 --- a/static/video/video.html +++ b/static/video/video.html @@ -75,7 +75,6 @@ url: "https://skyzt.bda.gov.cn/BEApi/getCamerasInfo?cameraIndexCode=" + code, success: function (result) { try { var data = JSON.parse(result); - realplay(data.data.url); let res; if (data.data.url.includes("41")) { res = data.data.url.replace("ws://10.117.5.41:559/", "wss://skyzt.bda.gov.cn:443/") @@ -89,11 +88,11 @@ res = data.data.url.replace("ws://10.117.5.46:559/", "wss://skyzt.bda.gov.cn:443/") } else if (data.data.url.includes("47")) { res = data.data.url.replace("ws://10.117.5.47:559/", "wss://skyzt.bda.gov.cn:443/") + } else if (data.data.url.includes("206")) { + res = data.data.url.replace("ws://10.117.5.28:559/", "wss://skyzt.bda.gov.cn:443/")//瑙嗛鏈�鏂拌繑鍥炲湴鍧� } realplay(res); - } catch (e) { - - } + } catch (e) { } } }); } @@ -114,31 +113,35 @@ }) setSize() } - function arrangeWindow() { - let splitNum = 1 - this.player.JS_ArrangeWindow(splitNum).then( - () => { console.log(`arrangeWindow to ${splitNum}x${splitNum} success`) }, - e => { console.error(e) } - ) - } - function wholeFullScreen() { - this.player.JS_FullScreenDisplay(true).then( - () => { console.log(`wholeFullScreen success`) }, - e => { console.error(e) } - ) - } + // function arrangeWindow() { + // let splitNum = 1 + // this.player.JS_ArrangeWindow(splitNum).then( + // () => { console.log(`arrangeWindow to ${splitNum}x${splitNum} success`) }, + // e => { console.error(e) } + // ) + // } + // function wholeFullScreen() { + // this.player.JS_FullScreenDisplay(true).then( + // () => { console.log(`wholeFullScreen success`) }, + // e => { console.error(e) } + // ) + // } /* 棰勮&瀵硅 */ function realplay(url) { var mode = 1; var index = player.currentWindowIndex; var playURL = url; player.JS_Play(playURL, { playURL, mode }, index).then( - () => { console.log('realplay success') }, - e => { console.error(e); } + () => { + console.log('realplay success') + }, + e => { + console.error(e); + } ) } $(function () { - // init(); + init(); }); </script> </body> -- Gitblit v1.9.3