Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Player stuck on loading after quality switch - HLS protocol #8201

Open
arauv opened this issue Mar 20, 2023 · 3 comments
Open

Player stuck on loading after quality switch - HLS protocol #8201

arauv opened this issue Mar 20, 2023 · 3 comments
Labels
bug needs: triage This issue needs to be reviewed

Comments

@arauv
Copy link

arauv commented Mar 20, 2023

Description

First of all thank you for the work done guys !

Here, the video player is blocked after the quality change (either with 360p or 480p) on the 1st segment of the video.
Nothing comes up in the logs or as errors in the VHS representations part: the player is just stucked.

Have you had this problem before ? How to work around the problem ? (reset buffer ? ...)

Reduced test case

https://perso.mediatech.fr/aa/

Steps to reproduce

  1. Click on the button play
  2. In the first eight second switch to the 360p quality. It is normally enough to stuck the player. Otherwise you can play with the 360p and 480p quality during the first eight second and the player will be stuck too.
  3. The debug mode is enabled with the provided test case: https://perso.mediatech.fr/aa/.

Errors

No response

What version of Video.js are you using?

8.0.4 (but reproductibled with the version 7)

Video.js plugins used.

http-source-selector, contrib-quality-levels

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

Chrome 108

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

Linux, Windows

@arauv arauv added bug needs: triage This issue needs to be reviewed labels Mar 20, 2023
@welcome
Copy link

welcome bot commented Mar 20, 2023

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

@amtins
Copy link
Contributor

amtins commented Oct 30, 2023

@arauv I just had a quick look at your example and there seems to be DTS issues with at least the 360p rendition. I used ffplay then cycle through the video channels with the v key and got the following result:
Screenshot from 2023-10-30 18-10-15

It reminds me of the following issue, see videojs/http-streaming#1426

You can try using the calculateTimestampOffsetForEachSegment property as follows:

const player = videojs('my-player', {
  html5: {
    vhs: {
      calculateTimestampOffsetForEachSegment: true,
    },
  },
});

@arauv
Copy link
Author

arauv commented Nov 9, 2023

Thank you so much @amtins for your response ! I'll take a closer look at this !

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug needs: triage This issue needs to be reviewed
Projects
None yet
Development

No branches or pull requests

2 participants