Loading debian/changelog +7 −0 Original line number Diff line number Diff line mediadb (20260424+80) unstable; urgency=medium * Fix video overlay: stop fetch on close (pause + removeAttribute('src')) to free H2 connection for other requests. -- Jan Koester <jan.koester@tuxist.de> Thu, 24 Apr 2026 00:00:00 +0200 mediadb (20260424+79) unstable; urgency=medium * Reduce MAX_CONCURRENT_PREVIEWS 6→2 in admin.html and gallery.html to Loading html/admin.html +3 −1 Original line number Diff line number Diff line Loading @@ -568,13 +568,15 @@ function openPreview(mediaId, thumbImg) { video.addEventListener('click', e => e.stopPropagation()); video.src = `/media/${mediaId}/raw?token=${encodeURIComponent(token)}`; overlay.appendChild(video); // Stop video fetch when overlay is closed to free the H2 connection overlay.addEventListener('click', () => { video.pause(); video.removeAttribute('src'); video.load(); overlay.remove(); }); } else { // Image overlay with larger resolution const fmtSel = row ? row.querySelector('.fmt-select') : null; const fmt = fmtSel ? fmtSel.value : 'webp'; overlay.innerHTML = `<img src="/media/${mediaId}/preview?w=1280&fmt=${fmt}" alt="preview">`; } overlay.addEventListener('click', () => overlay.remove()); } document.body.appendChild(overlay); } Loading Loading
debian/changelog +7 −0 Original line number Diff line number Diff line mediadb (20260424+80) unstable; urgency=medium * Fix video overlay: stop fetch on close (pause + removeAttribute('src')) to free H2 connection for other requests. -- Jan Koester <jan.koester@tuxist.de> Thu, 24 Apr 2026 00:00:00 +0200 mediadb (20260424+79) unstable; urgency=medium * Reduce MAX_CONCURRENT_PREVIEWS 6→2 in admin.html and gallery.html to Loading
html/admin.html +3 −1 Original line number Diff line number Diff line Loading @@ -568,13 +568,15 @@ function openPreview(mediaId, thumbImg) { video.addEventListener('click', e => e.stopPropagation()); video.src = `/media/${mediaId}/raw?token=${encodeURIComponent(token)}`; overlay.appendChild(video); // Stop video fetch when overlay is closed to free the H2 connection overlay.addEventListener('click', () => { video.pause(); video.removeAttribute('src'); video.load(); overlay.remove(); }); } else { // Image overlay with larger resolution const fmtSel = row ? row.querySelector('.fmt-select') : null; const fmt = fmtSel ? fmtSel.value : 'webp'; overlay.innerHTML = `<img src="/media/${mediaId}/preview?w=1280&fmt=${fmt}" alt="preview">`; } overlay.addEventListener('click', () => overlay.remove()); } document.body.appendChild(overlay); } Loading