YYC
2026-03-03 1002ee677c8d08ca1d8826ab8da30aabf14dbbc0
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);
}