bugfix streams continuing to run in the background (#1714)

This commit is contained in:
mayeaux 2022-06-21 00:17:12 +02:00 committed by GitHub
parent 20ff660cb2
commit 63f7a8f15c
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -604,6 +604,9 @@ export default React.memo<Props>(function VideoJs(props: Props) {
window.player.currentTime(0); window.player.currentTime(0);
// stop streams running in background
window.player.loadTech_('html5', null);
window.player.claimSrcVhs = null; window.player.claimSrcVhs = null;
} }
}; };