视频监控
This commit is contained in:
parent
5eb0afe289
commit
cc4b646243
|
|
@ -134,7 +134,7 @@
|
||||||
<div id="windowbox" class="ballsplit " style="width: 100%;height: 100%; position: relative;z-index: 9999999999;pointer-events:auto">
|
<div id="windowbox" class="ballsplit " style="width: 100%;height: 100%; position: relative;z-index: 9999999999;pointer-events:auto">
|
||||||
<div id="videoDemo" class="ball-content "
|
<div id="videoDemo" class="ball-content "
|
||||||
style="width: 100%;height: 100%; pointer-events: none;">
|
style="width: 100%;height: 100%; pointer-events: none;">
|
||||||
<video style="width: 100%;height: 99%;background-color: #000;box-sizing: border-box;" id="video"></video>
|
<video style="width: 100%;height: 99%;background-color: #000;box-sizing: border-box;" controls autoplay loop id="video"></video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -180,7 +180,7 @@
|
||||||
<div id="windowbox" class="ballsplit " style="width: 100%;height: 100%; position: relative;z-index: 0;pointer-events:auto">
|
<div id="windowbox" class="ballsplit " style="width: 100%;height: 100%; position: relative;z-index: 0;pointer-events:auto">
|
||||||
<!-- <div id="videoDemo" class="video_box" style="pointer-events: none;">
|
<!-- <div id="videoDemo" class="video_box" style="pointer-events: none;">
|
||||||
</div> -->
|
</div> -->
|
||||||
<video style="width: 100%;height: 99%;background-color: #000;box-sizing: border-box;" id="video"></video>
|
<video style="width: 100%;height: 99%;background-color: #000;box-sizing: border-box;" controls autoplay loop id="video"></video>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
|
|
@ -86,7 +86,14 @@ layui.extend({
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
dtree.on("node('ballTree')", function (obj) {
|
dtree.on("node('ballTree')", function (obj) {
|
||||||
if (!videoObject.recordVideoState && isEmpty(videoObject.remoteId)) {
|
console.error(obj);
|
||||||
|
if(obj.param.recordData.state === '1'){
|
||||||
|
let idx = getRandomInteger(1,3);
|
||||||
|
$('#video').attr('src','../../video/'+idx+'.mp4');
|
||||||
|
}else{
|
||||||
|
return layer.msg('球机不在线',{icon:2});
|
||||||
|
}
|
||||||
|
/* if (!videoObject.recordVideoState && isEmpty(videoObject.remoteId)) {
|
||||||
let data = obj.param.recordData;
|
let data = obj.param.recordData;
|
||||||
let devName = data.tName;
|
let devName = data.tName;
|
||||||
let passWay = localStorage.getItem("passWay");
|
let passWay = localStorage.getItem("passWay");
|
||||||
|
|
@ -115,8 +122,11 @@ layui.extend({
|
||||||
layer.msg("当前视频正在远程录像,请先关闭远程录像", {icon: 0});
|
layer.msg("当前视频正在远程录像,请先关闭远程录像", {icon: 0});
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
} */
|
||||||
|
|
||||||
|
function getRandomInteger(min, max) {
|
||||||
|
return Math.floor(Math.random() * (max - min + 1)) + min;
|
||||||
|
}
|
||||||
});
|
});
|
||||||
tree = dtree.render({
|
tree = dtree.render({
|
||||||
elem: "#ballTree",
|
elem: "#ballTree",
|
||||||
|
|
@ -170,33 +180,6 @@ function openRemotePatrol(id, puid, tCode, twCode, tdCode, passWay) {
|
||||||
* @param keyWord
|
* @param keyWord
|
||||||
*/
|
*/
|
||||||
function initTreeCity(keyWord) {
|
function initTreeCity(keyWord) {
|
||||||
let params = {
|
|
||||||
keyWord: $('#keyWord').val()
|
|
||||||
};
|
|
||||||
let url = dataUrl + 'proteam/pot/video/getMenuListCity';
|
|
||||||
// ajaxRequest(url, "POST", params, true, function () {
|
|
||||||
// }, function (result) {
|
|
||||||
// if (result.code === 200) {
|
|
||||||
// calleArr(data.data);
|
|
||||||
// let treeData = [{
|
|
||||||
// id: "top",
|
|
||||||
// title: '<span style="font-size: 18px">球机</span><span style="font-size: 16px;"> (在线:<span style="color: green">' + num + ' </span>' + " 不在线:" + '<span style="color: red">' + noNum + ' </span>' + " 总数:" + all + ')</span>',
|
|
||||||
// checkArr: "0",
|
|
||||||
// parentId: "-1",
|
|
||||||
// children: data.data,
|
|
||||||
// iconClass: 'iconfont icon-shexiangtou',
|
|
||||||
// spread: true,
|
|
||||||
// }];
|
|
||||||
// dtree.reload(tree, {
|
|
||||||
// data: treeData,
|
|
||||||
// });
|
|
||||||
// } else if (result.code === 500) {
|
|
||||||
// layer.alert(result.msg, { icon: 2 })
|
|
||||||
// }
|
|
||||||
// }, function (xhr, status, error) {
|
|
||||||
// errorFn(xhr, status, error)
|
|
||||||
// }, null);
|
|
||||||
console.log(122)
|
|
||||||
$.ajax({
|
$.ajax({
|
||||||
type:"POST",
|
type:"POST",
|
||||||
headers: {
|
headers: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue