video.js icon indicating copy to clipboard operation
video.js copied to clipboard

Video freezes between second 3 to 6 and forwards playing

Open anschm opened this issue 2 years ago • 1 comments

Description

We are using videojs 7.20.1 in our project. The streaming is done by cloudflare via HLS. If we play some videos with chrome or edge they are freezing between second 3 to 6. After that short freeze the player forwards playing the rest of the video. At the progress bar of the player we see a little gap at second 5. At firefox or safari we don't see this gap, but the video skips some frames between second 3 or 6 and don't freeze.

You can see the behaviour on following link:

https://dillybeeze.de/videos/46b332e2-2309-4a1b-a6e0-ca25494301a2/watch

I markt the gap in this picture (its really small):

Bildschirmfoto 2022-07-27 um 11 16 47

Reduced test case

https://codepen.io/aschm/pen/GRxMydV

Steps to reproduce

  1. Open https://codepen.io/aschm/pen/GRxMydV
  2. Watch the video with chrome
  3. Video freeze at second 6
  4. A gap is at second 5

Errors

No error displayed

What version of Video.js are you using?

7.20.1

Video.js plugins used.

videojs-contrib-quality-levels, videojs-hls-quality-selector, videojs-logo

What browser(s) including version(s) does this occur with?

Chrome 103.0.5060.134

What OS(es) and version(s) does this occur with?

Mac and Windows

anschm avatar Jul 27 '22 09:07 anschm

👋 Thanks for opening your first issue here! 👋

If you're reporting a 🐞 bug, please make sure you include steps to reproduce it. We get a lot of issues on this repo, so please be patient and we will get back to you as soon as we can. To help make it easier for us to investigate your issue, please follow the contributing guidelines.

welcome[bot] avatar Jul 27 '22 09:07 welcome[bot]

@anschm I ran across a related issue and believe it is Cloudflare related. Videojs doesn't seem to tolerate errors in playlist files much. Specifically the iPad Pro with M1 + Chrome will completely freeze and never recover. Note that it will work file on other iPads, iPhones and if switching to safari.

Did you every find a solution to this other than switching to another library ?

suau avatar Nov 25 '22 09:11 suau

Not shure what causes the problem, but I was able to fix it by replacing old cloudflare URL https://videodelivery.net/{VIDEO_ID}/manifest/video.m3u8 with a new (recommended) one: https://customer-{CUSTOMER_ID}.cloudflarestream.com/{VIDEO_ID}/manifest/video.m3u8

poooow avatar Dec 06 '22 11:12 poooow

Hey! We've detected some video files in a comment on this issue. If you'd like to permanently archive these videos and tie them to this project, a maintainer of the project can reply to this issue with the following commands:

  • for https://videodelivery.net/{VIDEO_ID}/manifest/video.m3u8: say @video-archivist-bot save VEeBLj
  • for https://customer-{CUSTOMER_ID}.cloudflarestream.com/{VIDEO_ID}/manifest/video.m3u8: say @video-archivist-bot save WjyQVj

video-archivist-bot avatar Dec 06 '22 11:12 video-archivist-bot

This sort of thing would happen if the player's seekable ranges are incomplete - which it gets from the stream itself. It sounds like this was an issue with the stream and may be resolved by (thanks @poooow) switching to a different CloudFlare stream URL.

If not, please feel free to open a new issue.

misteroneill avatar Mar 28 '23 16:03 misteroneill