Update video player to use correct URLs

Updates the video player component to use `videoUrlMp4` and `videoUrl` properties for MP4 and HLS sources respectively, instead of the previously used `mp4Url` and `hlsUrl`.

Replit-Commit-Author: Agent
Replit-Commit-Session-Id: 074b0e4c-6171-43bd-aa98-f9e04623ca14
Replit-Commit-Checkpoint-Type: full_checkpoint
Replit-Commit-Screenshot-Url: https://storage.googleapis.com/screenshot-production-us-central1/8cc42625-c1f5-4e43-99bd-77f2c4dedee2/074b0e4c-6171-43bd-aa98-f9e04623ca14/6upLu3q
This commit is contained in:
sebastjanartic 2025-08-30 12:44:12 +00:00
parent e7d66d289d
commit c035c0bd4d

View File

@ -136,12 +136,12 @@ export default function VideoCard({ video, onClick, className = "" }: VideoCardP
onCanPlay={() => console.log('Preview ready for:', video.title)} onCanPlay={() => console.log('Preview ready for:', video.title)}
> >
{/* Try MP4 source first for faster loading on mobile */} {/* Try MP4 source first for faster loading on mobile */}
{video.mp4Url && ( {video.videoUrlMp4 && (
<source src={video.mp4Url} type="video/mp4" /> <source src={video.videoUrlMp4} type="video/mp4" />
)} )}
{/* Fallback to HLS if MP4 fails */} {/* Fallback to HLS if MP4 fails */}
{video.hlsUrl && ( {video.videoUrl && (
<source src={video.hlsUrl} type="application/x-mpegURL" /> <source src={video.videoUrl} type="application/x-mpegURL" />
)} )}
</video> </video>
</div> </div>