Skip to content

Commit dff0f77

Browse files
committed
chore: enhance video player
1 parent 7f640e3 commit dff0f77

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

apps/website/src/sections/Spotlight.astro

+7
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,13 @@ import PlayButtonSymbol from "../assets/videos/play-button-symbol.svg";
112112
playButton.addEventListener("click", () => video.play());
113113
video.addEventListener("play", togglePlayButton);
114114
video.addEventListener("pause", togglePlayButton);
115+
video.addEventListener("click", () => {
116+
if (video.paused) {
117+
video.play();
118+
} else {
119+
video.pause();
120+
}
121+
});
115122
});
116123
</script>
117124

0 commit comments

Comments
 (0)