Skip to content

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

@rabbitate

Description

@rabbitate

📌 Issue

원인

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

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

해결

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

📚 To-do

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions