-
-
Notifications
You must be signed in to change notification settings - Fork 160
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add screencapturekit #228
base: main
Are you sure you want to change the base?
Add screencapturekit #228
Conversation
whats wrong with the example? |
it doesn't actually work -- I think we need to allocate a new DispatchQueue for this and need to be able to call c fns to do that. |
3b70a65
to
bc05a8b
Compare
@tmc maybe You just forgot to configure stream? I used your code but added parameters for the I remember reading somewhere on the internet that it is crucial to set The example below is from my application, but the methods are the same. streamConfiguration := api.NewSCStreamConfiguration()
streamConfiguration.SetWidth(displayWidth)
streamConfiguration.SetHeight(displayHeight)
streamConfiguration.SetMinimumFrameInterval(api.CMTime{Value: 1, Timescale: int32(framerate)})
streamConfiguration.SetQueueDepth(3) |
I have some further work on this branch: https://github.com/tmc/macdriver/tree/add-screencapturekit-debugging -- can you try to get it working? I think a very light wrapper might be needed for https://developer.apple.com/documentation/coremedia/1489563-cmsamplebuffercallforeachsample?language=objc to get at the sample data. |
Sure, but I'm receiving errors about duplicated symbols from C code during compilation, even though there is no duplication at all. I've never encountered this problem before. Do you know what could be causing it?
|
I've never seen it either and @tmc was able to reproduce without using macdriver at all, so I guess it's a weird cgo bug? |
This adds screencapturekit bindings.
The example isn't fully functional.
Refs #227