1 //用于获取视频访问的相关参数数据 2 //----------------------所有矿山-初始化并加载通道列表,并播放一个通道---------------- 3 function getAllMineCameraParaAndStartPlayMineManage() { 4 getAllMineCameraParaAndStartPlay("MineManage"); 5 } 6 function getAllMineCameraParaAndStartPlayMineEnter() { 7 getAllMineCameraParaAndStartPlay("MineEnter"); 8 } 9 function getAllMineCameraParaAndStartPlay(type) { 10 $.ajax({ 11 url: getRootPath() + "/" + type + "/MineVideoShow/GetDvrs", 12 type: "post", 13 async: false, 14 data: { type: "AllMineCamera" }, 15 datatype: "json", 16 success: function (jsondatap) { 17 var jsondata = eval('(' + jsondatap + ')'); 18 if (jsondata[0].STATE == "ERR") { alert("获取矿山视频访问参数信息出错!"); } 19 else if (jsondata[0].STATE == "EMPTY") { alert("未查询到矿山的视频监控信息!"); } 20 else { 21 AllMineVideoJson = jsondata[0].DATA; //全局变量 22 23 //初始化左树 24 InitAllMineCamera(AllMineVideoJson); 25 } 26 }, 27 error: function () { 28 alert("服务器忙,请稍后再试"); 29 } 30 }); 31 }