|
@@ -131,8 +131,7 @@
|
|
|
<ul id="cameras" class="wid-3">
|
|
|
|
|
|
<li th:each="cam : ${cameras}" style="border-width: 1px;border-color: #0a2a3b;">
|
|
|
- <span class="wid-4" th:each="ch,cStat : ${cam.channels}" th:value="${ch}" th:onclick="play([[${ch}]])"><span>[[${cStat.index+1}]]</span></span>[[${cam.name}]]
|
|
|
-
|
|
|
+ <span id="mycamera" class="wid-4" th:each="ch,cStat : ${cam.channels}" th:value="${ch}" th:onclick="play([[${ch}]])"><span>[[${cStat.index+1}]]</span></span>[[${cam.name}]]
|
|
|
</li>
|
|
|
|
|
|
</ul>
|
|
@@ -160,15 +159,6 @@
|
|
|
return theRequest;
|
|
|
}
|
|
|
|
|
|
- //页面加载时创建播放实例初始化
|
|
|
- $(window).load(function () {
|
|
|
-
|
|
|
-
|
|
|
- initPlugin();
|
|
|
-
|
|
|
-
|
|
|
- });
|
|
|
-
|
|
|
function play(hik_camera_id) {
|
|
|
var c = hik_camera_id.split(",")[0];
|
|
|
$("#cameraIndexCode").val(c);
|
|
@@ -177,6 +167,16 @@
|
|
|
}, 100);
|
|
|
}
|
|
|
|
|
|
+ //页面加载时创建播放实例初始化
|
|
|
+ $(window).load(function () {
|
|
|
+ initPlugin();
|
|
|
+ setTimeout(function () {
|
|
|
+ $("#mycamera").click();
|
|
|
+ }, 1000);
|
|
|
+ });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
//声明公用变量
|
|
|
var initCount = 0;
|
|
@@ -403,5 +403,7 @@
|
|
|
}
|
|
|
});
|
|
|
|
|
|
+
|
|
|
+
|
|
|
</script>
|
|
|
</html>
|