fix: Update VideoPlayer to handle null src value

This commit is contained in:
Peifan Li
2025-12-28 14:22:55 -05:00
parent 700238796a
commit 05df7e2512

View File

@@ -633,7 +633,7 @@ const VideoPlayer: React.FC = () => {
{/* Main Content Column */}
<Grid size={{ xs: 12, lg: 8 }}>
<VideoControls
src={videoUrl || video?.sourceUrl}
src={(videoUrl || video?.sourceUrl) || null}
poster={posterUrl || localPosterUrl || video?.thumbnailUrl}
autoPlay={autoPlay}
autoLoop={autoLoop}