Skip to content

Commit

Permalink
video preview tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
blurymind committed Sep 13, 2024
1 parent bc2348f commit 4edc62a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/public/web-components.js
Original file line number Diff line number Diff line change
Expand Up @@ -458,9 +458,11 @@ class ResourcesComponent extends HTMLElement {
vidEl.addEventListener('pointerenter', () => {
vidEl.play();
});
vidEl.addEventListener('fullscreenchange', () => {
vidEl.play();
});
vidEl.addEventListener('pointerleave', () => {
vidEl.pause();
vidEl.currentTime = 0;
});
vidEl.controls = true;
vidEl.src = selectedItem;
Expand Down

0 comments on commit 4edc62a

Please sign in to comment.