This commit is contained in:
root 2025-07-11 17:56:32 +08:00
parent 0769e8224b
commit 51bc52118d
1 changed files with 1 additions and 0 deletions

View File

@ -69,6 +69,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
useEffect(() => { useEffect(() => {
const video = videoRef.current const video = videoRef.current
if (!video) return if (!video) return
if(!videoSrc) return;
const source = document.createElement('source'); const source = document.createElement('source');
source.type = 'video/mp4'; source.type = 'video/mp4';
source.src = videoSrc; source.src = videoSrc;