fix
This commit is contained in:
parent
0769e8224b
commit
51bc52118d
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue