Fix flickering video element
This commit is contained in:
parent
ccbc8de04d
commit
3d333665f2
@ -117,6 +117,9 @@ export function VideoPlayer({ ms }: VideoPlayerProps) {
|
||||
const videoRef = useRef<HTMLVideoElement>(null)
|
||||
|
||||
useEffect(() => {
|
||||
if (ready) {
|
||||
return
|
||||
}
|
||||
if (videoRef.current) {
|
||||
if (videoRef.current) {
|
||||
const ref = videoRef.current
|
||||
|
Loading…
Reference in New Issue
Block a user