Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

🐞[Fix] 비디오 화면 확대 참조 오류 수정 #24

Open
1 task done
rabbitate opened this issue Jun 3, 2024 · 0 comments
Open
1 task done

🐞[Fix] 비디오 화면 확대 참조 오류 수정 #24

rabbitate opened this issue Jun 3, 2024 · 0 comments
Assignees

Comments

@rabbitate
Copy link
Member

📌 Issue

원인

handleVideoContainerClick() 호출되었을 때 largeVideoRef가 null이라 참조 오류 발생
11

컴포넌트가 렌더링되기 전에 클릭 이벤트가 발생하면 largeVideoRef.current는 null

해결

activeVideo가 변경될 때마다 largeVideoRef의 srcObject를 업데이트 하여, largeVideoRef.current가 유효한 video 요소를 참조한 이후에 srcObject 설정

📚 To-do

  • handleVideoContainerClick() 한 번 호출하여도 정상 작동

@rabbitate rabbitate self-assigned this Jun 3, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant