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)
|
const videoRef = useRef<HTMLVideoElement>(null)
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
|
if (ready) {
|
||||||
|
return
|
||||||
|
}
|
||||||
if (videoRef.current) {
|
if (videoRef.current) {
|
||||||
if (videoRef.current) {
|
if (videoRef.current) {
|
||||||
const ref = videoRef.current
|
const ref = videoRef.current
|
||||||
|
Loading…
Reference in New Issue
Block a user