video 在Chrome浏览器中偶发性无法播放问题

参考1: https://github.com/videojs/video.js/issues/455
参考2: https://stackoverflow.com/questions/16137381/html5-video-element-request-stay-pending-forever-on-chrome

// this hack clears up any pending socket issues. damn it chrome.
   if(window.stop !== undefined) {
       window.stop();
   } else if(document.execCommand !== undefined) {
       document.execCommand("Stop", false);
   }

你可能感兴趣的:(video 在Chrome浏览器中偶发性无法播放问题)