Start a new topic

Video.js pdn

 Hi, was try create player video.js with pdn, when i start watch video it is will loading from server, and when i see on finish of video and drag to start video palyer will load all chunks again, i think all chuks already should be in buffer of PC.


try this code: watch video full and rewind to the beginning, all chunks will load again.


<html>
<head>
<link rel="stylesheet" href="http://vjs.zencdn.net/5.18.4/video-js.css">
<script type="text/javascript" src="http://vjs.zencdn.net/5.18.4/video.js"></script>
<script type="text/javascript" src="https://cdn.viblast.com/vb/stable/viblast.js"></script>
</head>
<body>
<video
  controls
  height="400"
  width="550"
  class="video-js vjs-default-skin"
>
</video>
<script>
var videoElement = document.getElementsByTagName("video")[0];
window.videojs(videoElement, {
   "viblast": {
      "key": "759ee919-9a1c-4e40-8792-fbfe27c3f071",
      "enablePdn": true,
      "windowSize": 99,
      "lowBufferLevel": 180,
      "maxRequestedChunksFromCdn": 1,
      "longPauseTimeout": 99999
   }
});
window.videojs(videoElement).src({type: "application/x-mpegURL", src: "http://wowza.peer5.com/vod/mp4:avengers.mp4/playlist.m3u8"});
</script>
</body>
</html>
1 Comment

Hi,

Thank you for the feedback. Unfortunately, the player has internal algorithm which clears its buffers when the backward seek is performed, which is not true for the forward seek.

That is the reason why the chunks are downloaded again. We will definitely review this behavior and hope the fix will be available soon.


Login to post a comment