|
|
@@ -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 + " ); }); "));
|
|
|
|
|
|
}
|
|
|
|