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?