fix(Player): reset nextVideoPopupDismissed on stream change

This commit is contained in:
Tim 2022-11-28 11:25:31 +01:00
parent eeda6e9fd0
commit 8775e978a4

View file

@ -381,6 +381,7 @@ const Player = ({ urlParams, queryParams }) => {
React.useEffect(() => {
defaultSubtitlesSelected.current = false;
defaultAudioTrackSelected.current = false;
nextVideoPopupDismissed.current = false;
}, [videoState.stream]);
React.useEffect(() => {
if ((!Array.isArray(videoState.subtitlesTracks) || videoState.subtitlesTracks.length === 0) &&