diff options
| author | Ken D'Ambrosio <ken@jots.org> | 2026-06-18 21:57:44 +0000 |
|---|---|---|
| committer | Ken D'Ambrosio <ken@jots.org> | 2026-06-18 21:57:44 +0000 |
| commit | 462e0081cc9062beb29530e84d15edf2003802db (patch) | |
| tree | 04fb50e8471e1905d661d40fc8a2df6705b4ddb3 /public | |
| parent | 547b51c0ec6be8786eea625423d24f0ae1a884c0 (diff) | |
Fix transcoded video playback in lightbox and slideshow
The HEVC-to-H.264 transcode kept the original file as a hidden
(non-admin) entry with transcoded_to set, but the lightbox <video>
element and the slideshow always pointed at the original file's URL.
Opening a transcoded video (e.g. via a direct ?photo= link) tried to
play the unsupported original codec instead of the browser-compatible
copy.
- album.erb/album.js: lightbox video now plays the transcoded file
when present, while the "Download Original" link still serves the
true original.
- all_media_entries: slideshow skips transcoded originals entirely
since it has no separate download path.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Diffstat (limited to 'public')
| -rw-r--r-- | public/js/album.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/album.js b/public/js/album.js index 3fca29b..17de0b6 100644 --- a/public/js/album.js +++ b/public/js/album.js @@ -68,7 +68,7 @@ function renderLightbox() { img.src = e.src; img.alt = e.title; img.classList.remove('hidden'); } else if (e.type === 'video') { - vid.src = e.src; + vid.src = e.play_src || e.src; vid.classList.remove('hidden'); vid.play().catch(() => {}); } else if (e.type === 'audio') { |
