diff --git a/player/static/player.js b/player/static/player.js index df0f87b..6084778 100644 --- a/player/static/player.js +++ b/player/static/player.js @@ -84,6 +84,8 @@ const mirrorLink = document.getElementById('mirror-link'); const playlistURL = mirrorSelect.value + window.restream_config.playlist; + if (window.restream_config.activeURL === playlistURL) return; + console.log('Reloading video from', playlistURL); if (Hls.isSupported()) { window.restream_config.hls.destroy(); @@ -94,6 +96,7 @@ video.src = playlistURL; } + window.restream_config.activeURL = playlistURL; mirrorLink.href = playlistURL; mirrorLink.innerText = '[m3u8]'; };