.. / ckplayer
Star Fork

ckplayer是一款用于在网页端播放视频的软件,支持mp4点播,,flv点播和直播,m3u8的点播和直播,ts直播,支持移动端,PC端


Latest

<img> @name @src 🛡️ strict-dynamic ⏱️ before-call
More information

Root Cause

Source: https://gitee.com/niandeng/ckplayer/blob/master/ckplayer/js/ckplayer.js#L6819

function getPath(siz) {
  var scriptList = document.scripts,
    thisPath = scriptList[scriptList.length - 1].src;
  for (var i = 0; i < scriptList.length; i++) {
    var scriptName = scriptList[i].getAttribute('name') || scriptList[i].getAttribute('data-name');
    var src = scriptList[i].src.slice(scriptList[i].src.lastIndexOf('/') + 1, scriptList[i].src.lastIndexOf('.'));
    if ((scriptName && (scriptName == 'ckplayer' || scriptName == 'ckplayer.min')) || (scriptList[i].src && (src == 'ckplayer' || src == 'ckplayer.min'))) {
      thisPath = scriptList[i].src;
      break;
    }
  }
  var path=thisPath.substring(0, thisPath.lastIndexOf('/js/') + 1);
  if(!isUndefined(siz)){
    path+=siz+'/';
  }
  return path;
}

Related links:

Found by jackfromeast, ishmeals.


Source | History