aboutsummaryrefslogtreecommitdiff
path: root/components
diff options
context:
space:
mode:
Diffstat (limited to 'components')
-rw-r--r--components/videoPlayer.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/components/videoPlayer.js b/components/videoPlayer.js
index b5f8412..0ef5dc4 100644
--- a/components/videoPlayer.js
+++ b/components/videoPlayer.js
@@ -84,6 +84,7 @@ export default function VideoPlayer({
});
art.on("video:timeupdate", () => {
+ if (!session) return;
const currentTime = art.currentTime;
const duration = art.duration;
const percentage = currentTime / duration;