codepo8 / slide-show

A full screen slide show for images and videos
https://codepo8.github.io/slide-show/slideshow.html
31 stars 15 forks source link

In some cases, a video frame can stay on top of next image #2

Closed mossroy closed 2 years ago

mossroy commented 2 years ago

This happened to me only on in the following case:

In this case, a frame of the video appears in front of the image.

It seems to come from the eventlistener "canplaythrough" that is called each time the video is (re)-started, instead of only once. I managed to solve that by passing once: true after passive: true to the addEventListener call

I can make a PR if you want