mirror of
https://codeberg.org/ashley/poke.git
synced 2024-11-26 03:18:56 +01:00
add videojs-plugin-hotkeys.js
This commit is contained in:
parent
0a415383a9
commit
430d27d303
1 changed files with 12 additions and 1 deletions
|
@ -383,7 +383,10 @@ a[data-onclick="jump_to_time"] {
|
||||||
<link href="/css/watch-util.css?v=9893448" rel=stylesheet>
|
<link href="/css/watch-util.css?v=9893448" rel=stylesheet>
|
||||||
<link href="/css/watch-navbar.css?v=9893448" rel=stylesheet>
|
<link href="/css/watch-navbar.css?v=9893448" rel=stylesheet>
|
||||||
<link href="/css/poketube.css?v=948934774844" rel=stylesheet>
|
<link href="/css/poketube.css?v=948934774844" rel=stylesheet>
|
||||||
|
|
||||||
|
<!-- video.js -->
|
||||||
<link href="/css/videojs-v8.16.0.css" rel="stylesheet" />
|
<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>
|
<script src="/static/vjs.min.js"></script>
|
||||||
|
|
||||||
<!-- css files end -->
|
<!-- css files end -->
|
||||||
|
@ -621,7 +624,15 @@ background-color: #0000;
|
||||||
const video = videojs('video', {
|
const video = videojs('video', {
|
||||||
controls: true,
|
controls: true,
|
||||||
autoplay: false,
|
autoplay: false,
|
||||||
preload: 'auto'
|
preload: 'auto',
|
||||||
|
plugins: {
|
||||||
|
hotkeys: {
|
||||||
|
volumeStep: 0.1,
|
||||||
|
seekStep: 5,
|
||||||
|
enableModifiersForNumbers: false
|
||||||
|
},
|
||||||
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const qua = new URLSearchParams(window.location.search).get("quality") || "";
|
const qua = new URLSearchParams(window.location.search).get("quality") || "";
|
||||||
|
|
Loading…
Reference in a new issue