Questions tagged [screencapturekit]
4 questions
7
votes
1 answer
ScreenCaptureKit/CVPixelBuffer format yields unexpected results
I have a project where I use ScreenCaptureKit. For various reasons out of the scope of the question, the format that I configure ScreenCaptureKit to use is kCVPixelFormatType_32BGRA -- I need the raw BGRA data, which gets manipulated later on.
When…

jnpdx
- 45,847
- 6
- 64
- 94
3
votes
0 answers
SCShareableContent.getExcludingDesktopWindows sometimes never calls the completionHandler
I have a rather simple piece of code:
private var videoSampleQueue: DispatchQueue? = DispatchQueue(label: "queue.video")
.....
func startCapture(_ captureCompletion: StartCapturerCompletion?) {
NSLog("Requesting…

Ross Stepaniak
- 877
- 1
- 6
- 22
1
vote
1 answer
await SCShareableContent never returns or throws error
I built a Swift CLI application that records screen audio & video using ScreenCaptureKit.
It worked before, but now it's starting to behave strangely without any changes to my app (nor to my system...afaik)
I created a small sample project only…

Tobias K.
- 286
- 1
- 3
- 11
0
votes
0 answers
Wait for user kill signal in a swift command line program
I am new to swift. I am trying to build a command line wrapper around ScreenCaptureKit. The idea is that when i run the command, it starts capturing the main screen and then stops the capturing when user sends the kill signal to the command…

Mukesh Soni
- 6,646
- 3
- 30
- 37