Skip to content

Commit

Permalink
Merge pull request #59 from DDD-Community/feat/#46
Browse files Browse the repository at this point in the history
[feat/#46] 카메라 권한 요청 추가
  • Loading branch information
lkhoony authored Sep 14, 2024
2 parents e35387e + 935f84c commit 7df9e1c
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 7df9e1c

Please sign in to comment.