videojs / video.js

Video.js - open source HTML5 video player
https://videojs.com
Other
37.79k stars 7.43k forks source link

[Performance] Keep moving progress bar seeker causes player stuck #8804

Closed ritingliudd01 closed 1 month ago

ritingliudd01 commented 1 month ago

Description

When you keep dragging seeker on progress bar left and right for few seconds at https://videojs.com/advanced/?video=disneys-oceans, the player looks stuck. Checking developer tool you will find tens of requests sent in Safari of iPad Pro. It will revive until the last request returns response.

Some servers will cancel the repeated requests from the same URL with a series of corrupted .m3u8 files returned. If the browser is unable to ignore those responses and still send them to <video /> to handle, this issue will happen https://github.com/videojs/video.js/issues/8561

image

Reduced test case

https://videojs.com/advanced/?video=disneys-oceans

Steps to reproduce

  1. In Safari of iPad, go to https://videojs.com/advanced/?video=disneys-oceans;
  2. Play the default video and keep dragging the seeker on progress bar for few seconds;
  3. The video keeps loading and the player looks stuck.

Errors

No response

What version of Video.js are you using?

The version used at https://videojs.com/advanced/?video=disneys-oceans

Video.js plugins used.

No response

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

Safari on iPad Pro (12.9-inch) 6th generation

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

iOS 16.2

welcome[bot] commented 1 month ago

👋 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.

ritingliudd01 commented 1 month ago

Suggestion

Thanks 🙏

mister-ben commented 1 month ago

There'a a balance to be struck. Some people are very certain that seeking should occur as the slider is moved with immediate feedback.

ritingliudd01 commented 1 month ago

There'a a balance to be struck. Some people are very certain that seeking should occur as the slider is moved with immediate feedback.

Got it. Thanks 🙏