Skip to content

Commit

Permalink
Update hotkey.js
Browse files Browse the repository at this point in the history
修复在直播状态下可以前进后退的Bug
  • Loading branch information
OldTaoge authored Apr 27, 2020
1 parent 06fbf9b commit 308e31d
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/js/hotkey.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 308e31d

Please sign in to comment.