Skip to content

Delegate/Protocol methods not getting called #472

Open
@hydrobeam

Description

@hydrobeam

Hi! I've been messing around trying to get ScreenCaptureKit to work and capture a display. I've gotten to the point where the capture succesfully starts, but the methods that are supposed to be handling the output aren't being called externally (but they do trigger when I call them manually).

the two methods that are supposed to be triggered are from:

Here's a link to my demo repo for testing if you'd like to look at the code:
https://github.com/hydrobeam/osx_windows_demo/tree/65d11893b7bc815f0d8adeafc41dd30e10a07b4b

I'm not sure if I've defined the external protocols properly or if it's just a case of me not working with ScreenCaptureKit properly. I've checked quite a bit to make sure I don't have basic typos and that the methods I've defined actually correspond to the ones expected by the API, but there's still a chance I might've missed something since it seems to just fail silently.

If you have any suggestions or tips on how to debug this I'd appreciate them!

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-objc2Affects the `objc2`, `objc2-exception-helper` and/or `objc2-encode` cratesbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions