Initial quality notify based on already set setting

This commit is contained in:
Rafael 2022-04-25 14:54:33 -03:00 committed by Thomas Zarebczan
parent 753c47ace5
commit daaa787f97

View file

@ -164,7 +164,11 @@ export default React.memo<Props>(function VideoJs(props: Props) {
} = props;
// used to notify about default quality setting
const [initialQualityChange, setInitialQualityChange] = usePersistedState('initial-quality-change', false);
// if already has a quality set, no need to notify
const [initialQualityChange, setInitialQualityChange] = usePersistedState(
'initial-quality-change',
Boolean(defaultQuality)
);
const isMobile = useIsMobile();