---
title: "stream(_:didOutputSampleBuffer:of:)"
framework: screencapturekit
role: symbol
role_heading: Instance Method
path: "screencapturekit/scstreamoutput/stream(_:didoutputsamplebuffer:of:)"
---

# stream(_:didOutputSampleBuffer:of:)

Tells the delegate that a capture stream produced a frame.

## Declaration

```swift
optional func stream(_ stream: SCStream, didOutputSampleBuffer sampleBuffer: CMSampleBuffer, of type: SCStreamOutputType)
```

## Parameters

- `stream`: The frame capture stream that produced this frame.
- `sampleBuffer`: The sample buffer containing capture data.
- `type`: The type of capture contained in the sample buffer.
