var GlobalClickNum=0; var playerIDList=[]; var initMeida = function(videoUrl,coverUrl,node,curData) { $(node).hide(); var videoid = "my-video"+(GlobalClickNum++); var divPlayerWidth = curData.divPlayerWidth; var imgContainerHeight = curData.imgContainerHeight; addPlayerIDList(videoid); var videoHtml='
'; $(node).after(videoHtml); mediaPlayerInit(videoid,videoUrl,coverUrl,curData.id) pauseOtherPlayer(videoid); }; var addPlayerIDList = function(videoid) { if(!isContainPlayerID(videoid)){ playerIDList.push(videoid); } }; var isContainPlayerID=function(videoid){ if(playerIDList){ for(var i=0;i