暂停时播放器不会重新加载(下载)

时间:2014-10-21 15:09:24

标签: video.js

我是videojs的新手,我试图获取流媒体视频链接,然后将其添加到videojs,它播放正常但问题是当我点击暂停按钮时,我看到了流媒体条停止,如果我停顿太久,它会显示消息" ...网络下载错误..."。

这是我的代码:

<!DOCTYPE html>
<html>
<head>
  <title>Video.js | HTML5 Video Player</title>

  <!-- Chang URLs to wherever Video.js files will be hosted -->
  <link href="video-js.css" rel="stylesheet" type="text/css">
  <!-- video.js must be in the <head> for older IEs to work. -->
  <script src="video.js"></script>




</head>
<body>

  <video id="example_video_1" class="video-js vjs-default-skin" controls preload="none" width="640" height="264"
      poster="http://video-js.zencoder.com/oceans-clip.png"
      data-setup="{}">    
    <source src="https://r4---sn-oguesney.c.docs.google.com/videoplayback?requiressl=yes&shardbypass=yes&cmbypass=yes&id=de55ccae62995d9e&itag=18&source=webdrive&app=docs&ip=153.161.152.244&ipbits=0&expire=1413906775&sparams=requiressl,shardbypass,cmbypass,id,itag,source,ip,ipbits,expire&signature=325F9294F189E8105901F78920E32FD23F9618D1.41C07D0C50787A79642DAD6F0DEEBA4D6B538BD3&key=ck2&mm=30&ms=nxu&mt=1413903097&mv=u&nh=IgpwcjAxLm5ydDE5KgkxMjcuMC4wLjE&type=video/mp4;%20codecs=%22avc1.42001E,%20mp4a.40.2%22&quality=medium" type='video/mp4' />   
    <p class="vjs-no-js">To view this video please enable JavaScript, and consider upgrading to a web browser that <a href="http://videojs.com/html5-video-support/" target="_blank">supports HTML5 video</a></p>
  </video>

</body>
</html>

1 个答案:

答案 0 :(得分:0)

在检查之后,我看到预载在IE 11上工作但是对于其他人,它没有!

<强>更新

我看到如果使用Flash类型而不是Html5,当按暂停时,播放器仍会下载视频以供稍后播放。

发生了什么?