H5播放器有时获取duration的值为NaN?

function getDuration() {
  var timeset = null;
  timeset = setTimeout(function () {
  var duration = ov.duration;
  if(isNaN(duration)){
    getDuration();
  }else{
    aipt[2].value = changeTime(ov.duration);
      clearInterval(timeset);
    }
  }, 10);
}

posted on 2017-05-26 14:49  vsmart  阅读(694)  评论(0编辑  收藏  举报