dropin

alternative frontend for dropout.tv
git clone https://git.ce9e.org/dropin.git

commit
6c1ef9d1cba95e525d6c7a49f75e1d7fd72735ef
parent
95d0abdb1233a3ec6e354f20f9c3ba019c1fed2a
Author
Tobias Bengfort <tobias.bengfort@posteo.de>
Date
2025-02-14 22:25
allow to link to specific position

see also https://www.w3.org/TR/media-frags/

Diffstat

M static/video.js 5 +++++

1 files changed, 5 insertions, 0 deletions


diff --git a/static/video.js b/static/video.js

@@ -1,4 +1,5 @@
    1     1 var video = document.querySelector('video');
   -1     2 var query = new URLSearchParams(location.search);
    2     3 
    3     4 var h = function(tag, attrs, children) {
    4     5     var el = document.createElement(tag);
@@ -64,3 +65,7 @@ var createMenu = function() {
   64    65 var menu = createMenu();
   65    66 video.after(menu);
   66    67 applyQuality(localStorage.getItem('quality'), true);
   -1    68 
   -1    69 if (query.has('t')) {
   -1    70     video.currentTime = parseInt(query.get('t'), 10);
   -1    71 }