Maintain playback rate across video reloading

pull/250/head
ElementalAlchemist 3 years ago committed by Mike Lang
parent 75e0ba56ae
commit 78b9b5c68d

@ -120,8 +120,12 @@ function resetVideoPlayer() {
}
function updateSegmentPlaylist() {
const videoElement = document.getElementById("video");
const currentPlaybackRate = videoElement.playbackRate;
globalPlayer.destroy();
loadVideoPlayerFromDefaultPlaylist();
// The playback rate isn't maintained when destroying and reattaching hls.js
videoElement.playbackRate = currentPlaybackRate;
}
function setUpVideoControls() {

Loading…
Cancel
Save