Skip to content

Commit

Permalink
it's late man... stop...
Browse files Browse the repository at this point in the history
  • Loading branch information
stamat committed Nov 6, 2023
1 parent f56475d commit 8df7243
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -149,13 +149,13 @@ <h1>HTML5 VIDEO!</h1>
const playerElems = document.querySelectorAll('[data-vbg-uid]');
for (let i = 0; i < playerElems.length; i++) {
const vbgInstance = window.VIDEO_BACKGROUNDS.index[playerElems[i].getAttribute('data-vbg-uid')];
if (vbgInstance.params.autoplay && vbgInstance.params.mute) {
if (vbgInstance.params.autoplay && vbgInstance.params.muted) {
vbgInstance.softPlay();
}
}
for (let i = 0; i < playerElems.length; i++) {
const vbgInstance = window.VIDEO_BACKGROUNDS.index[playerElems[i].getAttribute('data-vbg-uid')];
if (vbgInstance.params.autoplay && vbgInstance.params.mute && !vbgInstance.isIntersecting) {
if (vbgInstance.params.autoplay && vbgInstance.params.muted && !vbgInstance.isIntersecting) {
vbgInstance.softPause();
}
}
Expand Down

0 comments on commit 8df7243

Please sign in to comment.