这是坛子里的大佬写的js页面监控加载命令,我试了试,只能加载一个监控,我想让每页加载6个该怎么写?
或者求出现一个大佬帮我解读一下语句///
var oVideo =document.createElement("video");
var area =document.getElementById("r11c1p_div");
oVideo.setAttribute("id","myPlayer");
oVideo.setAttribute("poster","poster");
oVideo.setAttribute("controls","controls");
oVideo.setAttribute("playsInline","playsInline");
oVideo.setAttribute("webkit-playsinline","webkit-playsinline");
oVideo.setAttribute("autoplay","autoplay");
//oVideo.setAttribute("class","video");
oVideo.innerHTML='<source src="http://cmgw-vpc.lechange.com:8888/LCO/5B03968PAZ3C62F/0/1/20210519T085616/8b0331639e34e8e962d30f567d263e06.m3u8" type="application/x-mpegURL" />';
oVideo.style.position="absolute";
oVideo.style.left="10px";
oVideo.style.display="block";
oVideo.style.top="10px";
oVideo.style.zIndex="2";
oVideo.style.maxWidth="300px";
oVideo.style.width="100%";
area.appendChild(oVideo);
var player = new EZUIPlayer('myPlayer');
player.on('error', function(){
console.log('error');
});
player.on('play', function(){
console.log('play');
});
player.on('pause', function(){
console.log('pause');
});
|