Skip to content

Commit

Permalink
[feat/#46] 카메라 권한 요청 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
lkhoony committed Sep 14, 2024
1 parent ff786ca commit 935f84c
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/components/Camera.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,13 @@ export default function Camera(props: CameraProps): React.ReactElement {
}
}, [hasPermission, isPermissionDenied])

useEffect(() => {
startVideo()
return () => {
stopVideo() // 컴포넌트가 언마운트될 때 비디오 중지
}
}, [])

return (
<div
style={{
Expand Down

0 comments on commit 935f84c

Please sign in to comment.