Skip to content

[objc2_av_foundation] Trying to read QR codes on macOS, can't get it to work #800

@miried

Description

@miried

So, not wanting to off-topic your issue tracker, but I'm trying to get a small sample working, which is relying on objc2 crates. I basically open a capture session with objc2_av_foundation and the Macbook camera as input, and read any QR codes as output. It is kind of following the sample code from Apple, which is for iOS, but I tried to distill it to only use the bare functionality to set up what I need, and as far as I can see, all the functionality I'm using should be available on macOS 13+.

Is the MetadataOutput supposed to work on macOS, or only iOS? Am I doing something wrong? See issue here: miried/avf-qr#1, and sample code here: https://github.com/miried/avf-qr/blob/main/src/main.rs.

Thanks for any help!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-frameworkAffects the framework crates and the translator for themquestionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions