From 430d27d303b8eb309532eeb9186a584fe29cea67 Mon Sep 17 00:00:00 2001 From: ashley Date: Fri, 9 Aug 2024 11:08:42 +0000 Subject: [PATCH] add videojs-plugin-hotkeys.js --- html/poketube.ejs | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/html/poketube.ejs b/html/poketube.ejs index 6796202..1ca776b 100644 --- a/html/poketube.ejs +++ b/html/poketube.ejs @@ -383,7 +383,10 @@ a[data-onclick="jump_to_time"] { + + + @@ -621,7 +624,15 @@ background-color: #0000; const video = videojs('video', { controls: true, autoplay: false, - preload: 'auto' + preload: 'auto', + plugins: { + hotkeys: { + volumeStep: 0.1, + seekStep: 5, + enableModifiersForNumbers: false + }, + }, + }); const qua = new URLSearchParams(window.location.search).get("quality") || "";