czt
2026-02-05 f8a1a873410f00beb3e2f3f888cabfd9264b207f
fzzy-igdss-web/src/main/resources/static/security/video-control.js
@@ -30,26 +30,41 @@
//云台控制
function ptzControl(command) {
    if (!gatewaySer) {
        layer.msg("未获取到库区网关信息,云台控制失败!");
        return;
    }
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.ptzUrl;
   // layer.msg('开始调用云台……', {icon: 1, time: 1200,offset:'rb'});
    const param = getParam(command, null);
    const url = "/security/ptz-media";
    sendControlCommand(url, param);
}
//预置位控制
function presetControl(command) {
    if (!gatewaySer) {
        layer.msg("未获取到库区网关信息,云台控制失败!");
        return;
    }
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.ptzUrl;
    //layer.msg('开始执行……', {icon: 1, time: 1200,offset:'rb'});
    const preset = $("#preset").val();
    const param = getParam(command, preset);
    const url = "/security/ptz-media";
    sendControlCommand(url, param);
}
//停止移动
function moveStop() {
    if (!gatewaySer) {
        layer.msg("未获取到库区网关信息,云台控制失败!");
        return;
    }
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.ptzUrl;
    //layer.msg('开始调用云台……', {icon: 1, time: 1200,offset:'rb'});
    const param = getParam(0, null);
    const url = "/security/ptz-media";
    sendControlCommand(url, param);
}