what type of object is a ScreenStreamOutput? I don't see it anywhere in Apple's documentation.
I'd expect your app, or a component thereof, to conform to SCStreamOutput protocol. So it should implement a
func stream(
_ stream: SCStream,
didOutputSampleBuffer sampleBuffer: CMSampleBuffer,
of type: SCStreamOutputType
)
that's where you'd put logic which copies the content of the sampleBuffer into your private circular buffer.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: