Update hotkey.js

修复在直播状态下可以前进后退的Bug
This commit is contained in:
Taoge Old 2020-04-27 19:22:14 +08:00 committed by GitHub
parent 06fbf9b6d6
commit 308e31dcb5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -15,11 +15,17 @@ class HotKey {
break;
case 37:
event.preventDefault();
if (player.options.live) {
break;
}
player.seek(player.video.currentTime - 5);
player.controller.setAutoHide();
break;
case 39:
event.preventDefault();
if (player.options.live) {
break;
}
player.seek(player.video.currentTime + 5);
player.controller.setAutoHide();
break;