Video server and timestamp #45

Merged
quoije merged 8 commits from cursor/video-server-and-timestamp-fc01 into 2026-video.backend 2025-12-22 01:50:21 -05:00
Showing only changes of commit 8590c30596 - Show all commits
+15
View File
@@ -430,6 +430,21 @@ async function playVodLink(vodLink) {
return; return;
} }
// App/Python protected video endpoint (no file extension, but it's still a direct <video> stream).
if (isApiVideoUrl(raw)) {
setSourceLabel('Server video stream (/api/video)');
const videoEl = showVideoPlayer();
if (!videoEl) return;
videoEl.src = raw;
videoEl.addEventListener('error', () => {
// If the browser can't play it (or CORS blocks), fall back to iframe.
setSourceLabel('Embed (fallback)');
showEmbedPlayer(raw);
}, { once: true });
try { videoEl.load(); } catch (_) {}
return;
}
// Direct video file // Direct video file
if (looksLikeVideoFile(raw)) { if (looksLikeVideoFile(raw)) {
setSourceLabel('Direct video file'); setSourceLabel('Direct video file');