sgj
4 天以前 241d327e57cbfe504aa806c61aa22e6205706098
fzzy-igdss-web/src/main/resources/static/inout/video-play.js
@@ -21,9 +21,15 @@
        initVideo2(snapParam2, snapPram3);
        return;
    }
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
    //车牌识别播放
    if (snapParam1) {
        var url = "";
        if (PlayType.PLAY_TYPE_WEB_RTC == snapParam1.playType) {
            url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
        }
        if (PlayType.PLAY_TYPE_YD_QLY == snapParam1.playType) {
            url = "/basic/inout/get-media";
        }
        $.ajax({
            type: "POST",
            url: url,
@@ -56,8 +62,14 @@
        initVideo3(snapParam3)
        return;
    }
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
    if (snapParam2) {
        var url = "";
        if (PlayType.PLAY_TYPE_WEB_RTC == snapParam2.playType) {
            url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
        }
        if (PlayType.PLAY_TYPE_YD_QLY == snapParam2.playType) {
            url = "/basic/inout/get-media";
        }
        $.ajax({
            type: "POST",
            url: url,
@@ -90,7 +102,13 @@
        return;
    }
    if (!snapParam3) return;
    var url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
    var url = "";
    if (PlayType.PLAY_TYPE_WEB_RTC == snapParam3.playType) {
        url = "http://" + gatewaySer.ip + ":" + gatewaySer.apiPort + gatewaySer.playUrl;
    }
    if (PlayType.PLAY_TYPE_YD_QLY == snapParam3.playType) {
        url = "/basic/inout/get-media";
    }
    $.ajax({
        type: "POST",
        url: url,
@@ -126,6 +144,9 @@
        videoId = data.cameraId;
        htm = '<video class="video" id="video' + playNum + '" autoplay="" muted="" playsinline=""></video>';
    }
    if (PlayType.PLAY_TYPE_YD_QLY == data.playType) {
        htm = '<iframe src="' + data.playUrl + '" width="100%" height="100%" frameborder="0" allowfullscreen></iframe>';
    }
    if (1 == order) {
        $("#kccz-r-video1").append(htm);
@@ -136,7 +157,7 @@
    if (3 == order) {
        $("#kccz-r-video3").append(htm);
    }
    if (PlayType.PLAY_TYPE_WEB_RTC_DH == data.playType || PlayType.PLAY_TYPE_WEB_RTC_HIK == data.playType) {
    if (PlayType.PLAY_TYPE_WEB_RTC == data.playType) {
        if (1 == order) {
            webRtcToPlay1();
        }