nokhwa: Example crashes on MacOS

Hi! I tried to run the example on my MacBook, but encountered following error:

thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: CouldntOpenDevice("Device at 0 not found")', src/main.rs:10:6
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 23 (15 by maintainers)

Commits related to this issue

Most upvoted comments

I am working on an AVFoundation backend for macos to sidestep this issue altogether.

Nevermind, I didn’t read this properly. I do not have access to a mac with a webcam at this moment, I’ll try when I get home.