Rename variable to include value units
This commit is contained in:
parent
4d438ed62f
commit
abb92726ab
1 changed files with 2 additions and 2 deletions
|
@ -31,7 +31,7 @@ import useInterval from 'effects/use-interval';
|
||||||
|
|
||||||
// const PLAY_TIMEOUT_ERROR = 'play_timeout_error';
|
// const PLAY_TIMEOUT_ERROR = 'play_timeout_error';
|
||||||
// const PLAY_TIMEOUT_LIMIT = 2000;
|
// const PLAY_TIMEOUT_LIMIT = 2000;
|
||||||
const PLAY_POSITION_SAVE_INTERVAL = 15000;
|
const PLAY_POSITION_SAVE_INTERVAL_MS = 15000;
|
||||||
|
|
||||||
type Props = {
|
type Props = {
|
||||||
position: number,
|
position: number,
|
||||||
|
@ -153,7 +153,7 @@ function VideoViewer(props: Props) {
|
||||||
if (playerRef.current && isPlaying) {
|
if (playerRef.current && isPlaying) {
|
||||||
handlePosition(playerRef.current);
|
handlePosition(playerRef.current);
|
||||||
}
|
}
|
||||||
}, PLAY_POSITION_SAVE_INTERVAL);
|
}, PLAY_POSITION_SAVE_INTERVAL_MS);
|
||||||
|
|
||||||
const updateVolumeState = React.useCallback(
|
const updateVolumeState = React.useCallback(
|
||||||
debounce((volume, muted) => {
|
debounce((volume, muted) => {
|
||||||
|
|
Loading…
Reference in a new issue