ScreenCaptureKit

RSS for tag

ScreenCaptureKit brings high-performance screen capture, including audio and video, to macOS.

ScreenCaptureKit Documentation

Posts under ScreenCaptureKit tag

35 Posts
Sort by:
Post not yet marked as solved
1 Replies
408 Views
Hey team -- looking to receive a delegate callback in Sonoma for screencapturekit when the toolbar portion of stop sharing is called. Does this come through in any of these? /** @abstract stream :didStopStreamWithError: @param stream the SCStream object @param error the error denoted by the stopping of the stream @discussion notifies the delegate that the stream has stopped and the error associated with it */ optional func stream(_ stream: SCStream, didStopWithError error: Error) /** @abstract outputVideoEffectDidStartForStream: @param stream the SCStream object @discussion notifies the delegate that the stream's overlay video effect has started. */ @available(macOS 14.0, *) optional func outputVideoEffectDidStart(for stream: SCStream) /** @abstract stream:outputVideoEffectDidStart: @param stream the SCStream object @discussion notifies the delegate that the stream's overlay video effect has stopped. */ @available(macOS 14.0, *) optional func outputVideoEffectDidStop(for stream: SCStream)
Posted Last updated
.
Post not yet marked as solved
0 Replies
335 Views
I am new to ios. I want to develop the application where I can able to share screen (display)from iphone(or from iphone to iphone) for remote support. For this this I need screen capture application or want to develop application .Can any apple developer help me on this.I want to chat and connect with Apple developer. If any freelancer is there then please connect with me.
Posted Last updated
.
Post not yet marked as solved
0 Replies
517 Views
I want to develop the application where I can able to share screen (display)from iphone(or from iphone to iphone) for remote support(or any other method) for this this I need screen captute application or API or system call. If any app is there in iphone or app store or any screen sharing client which can give me screen capture support.
Posted Last updated
.
Post not yet marked as solved
2 Replies
637 Views
Get screen recording permission window show every time when I run the ScreenCaptureKit sample project on macOS Sonoma Beta5: Even though I've already provided permissions in the screen recording permissions: This box keeps popping up, and until I remove the old recorded "CaptureSample" screen-recording permissions in "System Settings->Screen Recording" and add them again, it won't be able to record. This issue happens many times a day! Does anyone know how to fix it? Thanks~
Posted
by Christal.
Last updated
.
Post not yet marked as solved
0 Replies
339 Views
Hey, how can I retrieve dirtyRect from SCScreenshotManager.captureSampleBuffer? With streaming method, I can get it via attachments, but attachments are missing when using the SCScreenshotManager. If I have to compute it manually, would would be the most performant way of doing so?
Posted
by vince_liu.
Last updated
.
Post not yet marked as solved
4 Replies
1.7k Views
I'm creating app that listening other app's sound. in this use case, screen data is not needed. but if I don't call SCStream#addStreamOutput(_, type: .screen, ...), console shows this error: [ERROR] _SCStream_RemoteVideoQueueOperationHandlerWithError:701 stream output NOT found. Dropping frame currently I'm setting SCStreamConfiguration#minimumFrameInterval to large value (e.g. 0.1fps) as workaround, but it would be good if i can completely disable screen capture for best performance. there is any way to disable screen capture and only captures apps audio?
Posted
by rinsuki.
Last updated
.
Post not yet marked as solved
2 Replies
950 Views
Hi! I am building a Mac swift app to make screen recordings. I want to be able to record all the screen, a window or an area of the screen. I am very new to swift and am not sure if I should be using AVCaptureSession or SCScreenCaptureSession. I am trying to understand the differences and when I should use one over the other can anyone point me in the right direction? Thanks!
Posted
by na88.
Last updated
.
Post marked as solved
3 Replies
1.1k Views
I'm getting this error when I try to run the ScreenCaptureKit sample project on macOS Sonoma: [ERROR] _SCStream_RemoteAudioQueueOperationHandlerWithError:1,053 streamOutput NOT found. Dropping frame [ERROR] _SCStream_RemoteVideoQueueOperationHandlerWithError:1,020 stream output NOT found. Dropping frame Both streamOutput are being set like this: try stream?.addStreamOutput(streamOutput, type: .screen, sampleHandlerQueue: videoSampleBufferQueue) try stream?.addStreamOutput(streamOutput, type: .audio, sampleHandlerQueue: audioSampleBufferQueue) Link to sample project https://developer.apple.com/documentation/screencapturekit/capturing_screen_content_in_macos Any idea of what is causing this?
Posted
by csbloks.
Last updated
.
Post not yet marked as solved
0 Replies
386 Views
SCFilter in ScreenCaptureKit has 5 methods to select the capture target. Only one method initWithDesktopIndependentWindow: accepts one SCWindow as its capture target. The other four methods target one SCDisplay and extra SCRunningApplication or SCWindow combinations to filter out items by their criteria. Compared to the old API to capture windows or displays snapshots: CGImageRef CGWindowListCreateImage(CGRect screenBounds, CGWindowListOption listOption, CGWindowID windowID, CGWindowImageOption imageOption); CGImageRef CGWindowListCreateImageFromArray(CGRect screenBounds, CFArrayRef windowArray, CGWindowImageOption imageOption); The second method accepts an array of CGWindowID, so the result is a composite image formed from these windows. Will Apple provide a substitute in SCFilter for this method in the future?
Posted
by 100hps.
Last updated
.
Post not yet marked as solved
0 Replies
552 Views
Hello, Our macOS app (https://www.rewind.ai) takes periodic screenshots when it runs, and does so in the background without user intervention. Back on macOS 13 and earlier, we were using CGImage(windowListFromArrayScreenBounds:...) to do this. Now that there's a nice new way to do this in macOS 14 with ScreenCaptureKit's SCScreenshotManager, we tried moving to SCKit. Unfortunately, SCScreenshotManager displays purple icons in the title bars of all windows that it captures. For our purposes, this results in constant flickering icons in all window title bars while our app is running. I couldn't find a way to control this behavior. Am I missing something? Is it possible to use SCKit to take screenshots without showing these icons in window title bars? Thanks!
Posted Last updated
.