fix
This commit is contained in:
parent
0769e8224b
commit
51bc52118d
|
|
@ -69,6 +69,7 @@ const VideoPlayer: React.FC<VideoPlayerProps> = ({
|
|||
useEffect(() => {
|
||||
const video = videoRef.current
|
||||
if (!video) return
|
||||
if(!videoSrc) return;
|
||||
const source = document.createElement('source');
|
||||
source.type = 'video/mp4';
|
||||
source.src = videoSrc;
|
||||
|
|
|
|||
Loading…
Reference in New Issue