From 57233e23e69d04672f9721def4d00c2905922d25 Mon Sep 17 00:00:00 2001
From: YYC <1833023622@qq.com>
Date: 星期四, 12 二月 2026 14:40:07 +0800
Subject: [PATCH] APP
---
igdss-app/js/admin/security-video.js | 23 ++++++++++++++---------
1 files changed, 14 insertions(+), 9 deletions(-)
diff --git a/igdss-app/js/admin/security-video.js b/igdss-app/js/admin/security-video.js
index 4f3e1c7..e133cf6 100644
--- a/igdss-app/js/admin/security-video.js
+++ b/igdss-app/js/admin/security-video.js
@@ -2,18 +2,18 @@
var videoList = null;
var playData = null;
var data = {
- "interfaceId": "5604",
+ "interfaceId": "5103",
"tokenAuth": "",
- "outId": "56041",
+ "outId": "10103",
"reqDateTime": new Date(),
"data": {
"deptId": ""
}
};
var data1 = {
- "interfaceId": "5605",
+ "interfaceId": "5104",
"tokenAuth": "",
- "outId": "56051",
+ "outId": "10104",
"reqDateTime": new Date(),
"data": {
"id": "",
@@ -27,8 +27,13 @@
var selectDeptId = JSON.parse(localStorage.getItem('selectDeptId'));
data.tokenAuth = user.tokenAuth;
data1.tokenAuth = user.tokenAuth;
- data.data.deptId = selectDeptId;
- url = user.url + "/api-phone/v35/gateway";
+ deptId = selectDeptId;
+ if(deptId == null){
+ deptId = user.deptId
+ }
+ data.data.deptId = deptId;
+
+ url = user.url + "/api/phone/v1/gateway";
getVideoList();
@@ -141,7 +146,7 @@
if (result.code == "0000") {
playData = result.data;
console.log(JSON.stringify(playData))
- toVideo(playData.playAddr);
+ toVideo(playData.playUrl);
} else {
// toVideo("http://player.alicdn.com/video/aliyunmedia.mp4");
toVideo('')
@@ -157,8 +162,8 @@
function toVideo(playAddr) {
var html = '';
- html += '<video src="' + playAddr +
- '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></video>'
+ html += '<iframe src="' + playAddr +
+ '" poster="images/pos1.png" class="video" webkit-playsinline="true" playsinline="true" controls></iframe>'
$("#toVideo").html(html);
}
--
Gitblit v1.9.3