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);
}

原文地址:https://www.cnblogs.com/vsmart/p/6908457.html