Fix flickering video element
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user