Initial quality notify based on already set setting
This commit is contained in:
parent
753c47ace5
commit
daaa787f97
1 changed files with 5 additions and 1 deletions
|
@ -164,7 +164,11 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
} = props;
|
} = props;
|
||||||
|
|
||||||
// used to notify about default quality setting
|
// 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();
|
const isMobile = useIsMobile();
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue