From 9df27a0a37ca02f444cac95b6072accb666d1763 Mon Sep 17 00:00:00 2001 From: Mylloon Date: Mon, 21 Nov 2022 21:48:22 +0100 Subject: [PATCH] force the reload of the video --- js/main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/js/main.js b/js/main.js index 0c0bf15..98107ee 100644 --- a/js/main.js +++ b/js/main.js @@ -74,6 +74,7 @@ const updateVideo = (videoFolder, videosList, tree, source, newVideoId) => { const mainElement = source.parentElement.parentElement; source.src = `${videoFolder}/${videosList[newVideoId][0]}.${videosList[newVideoId][1]}`; source.type = `video/${videosList[newVideoId][1]}`; + source.parentElement.load(); if (tree[newVideoId]) { tree[newVideoId].forEach((nextVideoId, counter) => {