objective-see / objective-see/DoNotDisturb
Dealing with multiple video inputs
Nobody has claimed this yet.
- Dominant language
- Objective-C
- Stars
- 330
- Forks
- 49
- PR merge metrics
- No merged PRs in 30d
Description
The app uses +[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] when capturing alert photos. On systems with multiple camera inputs, including virtual devices such as OBS Virtual Camera, the captured image may come from the wrong input. There is no UI or preference to select the intended camera.
Whilst adding some sort of menu item to the UI would probably the most accessible fix, to begin with I think just using a AVCaptureDeviceDiscoverySession to find the first built-in camera rather than allowing macOS to decide what the default is would help.
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start at the alert-photo capture entry point that calls +[AVCaptureDevice defaultDeviceWithMediaType:AVMediaTypeVideo] and review how AVFoundation camera inputs are selected. Done means the capture path uses an AVCaptureDeviceDiscoverySession to choose the intended built-in camera rather than allowing the system default, including when virtual cameras are present.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- objective-c
- Domain
- desktop
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Quiet
- Clarity
- Mostly clear
- Newbie friendliness
- 58/100