vidstack / player

UI components and hooks for building video/audio players on the web. Robust, customizable, and accessible. Modern alternative to JW Player and Video.js.
https://vidstack.io
MIT License
1.9k stars 114 forks source link

Loop interruption for multiple vimeo videos (qutoplay and loop enabled) when cvdeo exits viewport #1245

Open Katrienvh opened 2 months ago

Katrienvh commented 2 months ago

Current Behavior:

When a Vimeo video is set to autoplay and loop, it fails to restart when it's out of the viewport.

This problem arises only when there are multiple videos playing concurrently, with the looping feature activated, and one of the playing videos is out of the viewport upon completion.

Expected Behavior:

The first video should restart automatically upon completion, as the loop feature remains active regardless of whether it is within the viewport of the website

Steps To Reproduce:

Reproduction Link: Codepen example

liam-macann commented 2 months ago

I can reproduce the issue with only a single video playing, but actually came to report Vimeo loops failing when the cursor is hovering over a video. This seems the case both with and without controls.

Katrienvh commented 2 months ago

I'm able to replicate the problem even when there's only one video on the webpage. Additionally,

@liam-macann I've observed quite a few more issues while hovering over the video, although it doesn't happen every time.