Currently, the capturing "hijacks" the main thread and we lose external control on it. Ideally, I would like the capturing to be async/non-blocking in nature. I don't yet know the best approach to do this. ScreenCaptureKit on macOS is non-blocking and works closer to how I want it to work but I don't know how it achieves that under the hood.
Open questions:
Should the capturer simply be run on an independent thread?
Should this be implemented upstream in windows-capture or should it be handled in cypher itself?
Currently, the capturing "hijacks" the main thread and we lose external control on it. Ideally, I would like the capturing to be async/non-blocking in nature. I don't yet know the best approach to do this. ScreenCaptureKit on macOS is non-blocking and works closer to how I want it to work but I don't know how it achieves that under the hood.
Open questions:
windows-capture
or should it be handled incypher
itself?