Open embeddable media straight into the player

This commit is contained in:
Fisto
2026-09-16 13:46:51 +02:00
parent 7f657cf29a
commit 5645f55356
3 changed files with 11 additions and 5 deletions
+3 -3
View File
@@ -152,9 +152,9 @@ that deletion is irreversible. The delete button is disabled for a 5 second coun
so a video without a cached preview renders a first-frame `<video>` in the grid, and downloaded
videos get an ffmpeg poster cached in `thumbs/`. Clicking a tile opens a viewer: wide media
shows the metadata banner below, vertical media shows it to the right, and videos carry a large
play icon top-right. The play action embeds a YouTube, Vimeo, Twitch, or Streamable player, or
plays a direct mp4/webm/m4v; when neither is possible it opens the external-site warning, since
the page is the only way to watch. Playback and **View full** go through
play icon top-right. An embeddable item (YouTube, Vimeo, Twitch, Streamable) opens straight into
its player; other videos play a direct mp4/webm/m4v, and when neither is possible the play
action opens the external-site warning, since the page is the only way to watch. Playback and **View full** go through
` /api/media/<scrape>/<item>/stream`, which serves the local file or re-fetches the source message
for a fresh signed URL, so expired CDN links still play. The grid prefers the cached still; a
video without one gets its first frame through the same-origin stream endpoint, which avoids