1
Fork 0

add videojs-plugin-hotkeys.js

This commit is contained in:
ashley 2024-08-09 11:08:42 +00:00
parent 0a415383a9
commit 430d27d303

View file

@ -383,7 +383,10 @@ a[data-onclick="jump_to_time"] {
<link href="/css/watch-util.css?v=9893448" rel=stylesheet>
<link href="/css/watch-navbar.css?v=9893448" rel=stylesheet>
<link href="/css/poketube.css?v=948934774844" rel=stylesheet>
<!-- video.js -->
<link href="/css/videojs-v8.16.0.css" rel="stylesheet" />
<script src="/static/videojs-plugin-hotkeys.js"></script>
<script src="/static/vjs.min.js"></script>
<!-- css files end -->
@ -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") || "";