Monica视频监控处理程序
xc
2021-04-25 d9b8699e9978c6f9d74c5e87ac663e4b9476c1cf
src/main/resources/public/monitor/live.html
@@ -100,7 +100,7 @@
        window.streamPath = "";
        $.ajax({
            type: "get",
            url: "../../webapi/equipment/getPlayUrl?url=" + video_url,
            url: "../../webapi/media/live?param=" + video_url,
            timeout: 5000,
            async: false,
            success: function (result) {
@@ -126,22 +126,10 @@
        jessibuca.destroy();
        if (streamPath) {
            $.ajax({
                type: "delete",
                url: "../../webapi/equipment/deleteStream?streamPath=" + streamPath,
                type: "get",
                url: "../../webapi/media/stop?param=" + streamPath,
                async: false,
                success: function (result) {
                    layer_flag = 'open';
                    $('.aside-right').css('left', '81%');
                    $('.aside-right').css('transition', 'left 2s');
                    $('.aside-left').css('left', '1%');
                    $('.aside-left').css('transition', 'left 2s');
                    $('#switch_CloseOpen').text("隐藏图层");
                    setTimeout(function () {
                        $(".main .main-center .main-center-right").css('display', 'flex');
                        $(".main .main-center .main-center-left").css('display', 'flex');
                        $(".main .main-center .main-base-container").css("display", "none");
                    }, 900);
                }
            });
        }