fix linting errors
This commit is contained in:
parent
6b8554517c
commit
954966abbb
1 changed files with 6 additions and 6 deletions
|
@ -363,13 +363,13 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
videoNode.muted = !videoNode.muted;
|
videoNode.muted = !videoNode.muted;
|
||||||
}
|
}
|
||||||
if (e.keyCode === VOLUME_DOWN_KEYCODE) {
|
if (e.keyCode === VOLUME_DOWN_KEYCODE) {
|
||||||
player.volume(player.volume()-0.05);
|
player.volume(player.volume() - 0.05);
|
||||||
OVERLAY.showVolumeverlay(player, Math.round(player.volume()*100));
|
OVERLAY.showVolumeverlay(player, Math.round(player.volume() * 100));
|
||||||
player.userActive(true);
|
player.userActive(true);
|
||||||
}
|
}
|
||||||
if (e.keyCode === VOLUME_UP_KEYCODE) {
|
if (e.keyCode === VOLUME_UP_KEYCODE) {
|
||||||
player.volume(player.volume()+0.05);
|
player.volume(player.volume() + 0.05);
|
||||||
OVERLAY.showVolumeverlay(player, Math.round(player.volume()*100));
|
OVERLAY.showVolumeverlay(player, Math.round(player.volume() * 100));
|
||||||
player.userActive(true);
|
player.userActive(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -387,7 +387,7 @@ export default React.memo<Props>(function VideoJs(props: Props) {
|
||||||
videoNode.currentTime = newDuration < 0 ? 0 : newDuration;
|
videoNode.currentTime = newDuration < 0 ? 0 : newDuration;
|
||||||
OVERLAY.showSeekedOverlay(player, SEEK_STEP, false);
|
OVERLAY.showSeekedOverlay(player, SEEK_STEP, false);
|
||||||
player.userActive(true);
|
player.userActive(true);
|
||||||
}
|
}
|
||||||
if (e.keyCode === SEEK_FORWARD_KEYCODE_5) {
|
if (e.keyCode === SEEK_FORWARD_KEYCODE_5) {
|
||||||
const newDuration = currentTime + SEEK_STEP_5;
|
const newDuration = currentTime + SEEK_STEP_5;
|
||||||
videoNode.currentTime = newDuration < 0 ? 0 : newDuration;
|
videoNode.currentTime = newDuration < 0 ? 0 : newDuration;
|
||||||
|
|
Loading…
Reference in a new issue