feat:video player, like button, and media fallbacks
Add VideoPlayer and LikeButton components with optimistic UI and /server endpoints for likes. Update media processor to emit WebP and JPEG fallbacks, store fallback URLs in the DB (migration + snapshot), add video placeholder asset, and relax CSP media-src for R2.
This commit is contained in:
6
static/video-placeholder.svg
Normal file
6
static/video-placeholder.svg
Normal file
@@ -0,0 +1,6 @@
|
||||
<svg width="400" height="300" viewBox="0 0 400 300" fill="none" xmlns="http://www.w3.org/2000/svg">
|
||||
<rect width="400" height="300" fill="#1F2937"/>
|
||||
<circle cx="200" cy="150" r="30" fill="#374151"/>
|
||||
<path d="M190 135L215 150L190 165V135Z" fill="#9CA3AF"/>
|
||||
<text x="200" y="200" text-anchor="middle" fill="#6B7280" font-family="system-ui, sans-serif" font-size="14">Video</text>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 391 B |
Reference in New Issue
Block a user