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

When playing a video in a loop, the video resolution keep changing #6735

Open
5 tasks done
mirceaulmeanu opened this issue Oct 3, 2024 · 3 comments
Open
5 tasks done

Comments

@mirceaulmeanu
Copy link

mirceaulmeanu commented Oct 3, 2024

What version of Hls.js are you using?

1.5.13

What browser (including version) are you using?

Brave (Windows and Android), Chrome (Windows and Android)

What OS (including version) are you using?

Windows and Android

Test stream

No response

Configuration

{
  capLevelOnFPSDrop: true
}

Additional player setup steps

No response

Checklist

Steps to reproduce

  1. Select FDR - CDN packaged, 4s segments, 180p - 1080p from the videos select box in the demo page (any of them)
  2. Set the "loop" attribute on the video to "true" (I wrote this in the console: document.getElementsByTagName("video")[0].loop = true;)
  3. Add a resize event on the video: document.getElementsByTagName("video")[0].addEventListener("resize", (e) => { console.log(e, e.target.videoWidth, e.target.videoHeight) });

Expected behaviour

The video starts at 640 x 360, it adapts to 1920 x 1080 and when it starts over because of loop=true it should start again at 1920 x 1080

What actually happened?

Each iteration the video starts at 640x360 and then jumps at 1920 x 1080

Console output

Not sure what you want here :(

Chrome media internals output

No response

@mirceaulmeanu mirceaulmeanu added Bug Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. labels Oct 3, 2024
@mirceaulmeanu
Copy link
Author

A side note, I couldn't reproduce this issue with the first video in the list, the big buck bunny.
On my project, the issue reproduces also on Safari iOS, where I am not using hls.js since streaming is natively supported.

@robwalch robwalch added Duplicate and removed Needs Triage If there is a suspected stream issue, apply this label to triage if it is something we should fix. Bug labels Oct 3, 2024
@robwalch
Copy link
Collaborator

robwalch commented Oct 3, 2024

@robwalch robwalch marked this as a duplicate of #4553 Oct 3, 2024
@mirceaulmeanu
Copy link
Author

Thank you, I haven't found this issue at search. I will try to flush backbuffer.
However, I wonder why I can reproduce with the second video and not with the first one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants