Skip to content

Commit

Permalink
Apr 23, 2024, 1:37 PM
Browse files Browse the repository at this point in the history
  • Loading branch information
jonmatthis committed Apr 23, 2024
1 parent 715d1d2 commit 363e91a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions notes/scratch/test-cams.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<title>Camera Test</title>
</head>
<body>
<h1>Camera Device Test</h1>
<script>
navigator.mediaDevices.enumerateDevices()
.then(devices => {
const videoDevices = devices.filter(device => device.kind === 'videoinput');
console.log(JSON.stringify(videoDevices));
})
.catch(error => console.error('Error accessing media devices:', error));
</script>
</body>
</html>

0 comments on commit 363e91a

Please sign in to comment.