yf_zd 5 سال پیش
والد
کامیت
bb5f0a04fa
1فایلهای تغییر یافته به همراه10 افزوده شده و 4 حذف شده
  1. 10 4
      templates/backstageNet/jk/equipmanage_jk.html

+ 10 - 4
templates/backstageNet/jk/equipmanage_jk.html

@@ -830,12 +830,18 @@
                 script.appendChild(document.createTextNode(" new EZUIPlayer('myPlayer" + curIndex + "');")); 
             }
             else {
+                var playHtml = "<video id='myPlayer" + curIndex + "' style='width: 100%; height: 100%' class='videoNum" + divNum + "' poster='' controls playsinline webkit-playsinline autoplay>";
 
-                playHtml = "<iframe   id='playFrame" + curIndex + "'  src='https://open.ys7.com/ezopen/h5/iframe_se?url=ezopen://open.ys7.com/" + deviceSerial + "/" + cameraNo + ".hd.live&autoplay=1&accessToken="+token+"'  width='100%' height='100%' allowfullscreen frameborder='0' allowtransparency=true></iframe>"
-
-                script = document.createElement("script");
+                playHtml += "<source src='" + hls + "' type='' />";
+                playHtml += "</video>";
+                var script = document.createElement("script");
                 script.type = "text/javascript";
-                script.appendChild(document.createTextNode(" IframeOnClick.track(document.getElementById('playFrame" + curIndex + "'), function() { setCurIndex(" + curIndex + " ); }); "));
+                script.appendChild(document.createTextNode(" new EZUIPlayer('myPlayer" + curIndex + "');"));
+                // playHtml = "<iframe   id='playFrame" + curIndex + "'  src='https://open.ys7.com/ezopen/h5/iframe_se?url=ezopen://open.ys7.com/" + deviceSerial + "/" + cameraNo + ".hd.live&autoplay=1&accessToken="+token+"'  width='100%' height='100%' allowfullscreen frameborder='0' allowtransparency=true></iframe>"
+
+                // script = document.createElement("script");
+                // script.type = "text/javascript";
+                // script.appendChild(document.createTextNode(" IframeOnClick.track(document.getElementById('playFrame" + curIndex + "'), function() { setCurIndex(" + curIndex + " ); }); "));
 
             }