feat(media): implement nextjs media proxy API routes (/api/uploads & /api/media) with server-side caching and streaming
This commit is contained in:
1 parent
d9c693c41b
commit
fa1a35c835
19 files changed
+13806
-13030
No files matched your search
@@ -19,6 +19,7 @@ import {
|
||||
Sparkles,
|
||||
Loader2
|
||||
} from "lucide-react";
|
||||
import { getMediaUrl } from "../lib/media";
|
||||
|
||||
interface VideoModalPlayerProps {
|
||||
isOpen: boolean;
|
||||
@@ -317,8 +318,8 @@ export default function VideoModalPlayer({ isOpen, onClose, video }: VideoModalP
|
||||
>
|
||||
<video
|
||||
ref={videoRef}
|
||||
src={video.videoUrl}
|
||||
poster={video.thumbnail}
|
||||
src={getMediaUrl(video.videoUrl)}
|
||||
poster={getMediaUrl(video.thumbnail)}
|
||||
autoPlay
|
||||
playsInline
|
||||
onPlay={() => setIsPlaying(true)}
|
||||
|
||||
Reference in new issue
Block a user