---
title: SCStreamFrameInfo
framework: screencapturekit
role: symbol
role_heading: Structure
path: screencapturekit/scstreamframeinfo
---

# SCStreamFrameInfo

An instance that defines metadata keys for a stream frame.

## Declaration

```swift
struct SCStreamFrameInfo
```

## Overview

Overview Use SCStreamFrameInfo keys to retrieve values from the dictionary of metadata attached to the sample buffers that a stream produces. For example, you can retrieve the display time, content scale, and scaling factor, as shown below: // A dictionary of attachments for a streamed sample buffer. let attachments: [SCStreamFrameInfo: Any] = // Retrieve attachments from a sample buffer.

let displayTime = attachments[.displayTime] as? UInt64 ?? 0 let contentScale = attachments[.contentScale] as? Double ?? 0.0 let scaleFactor = attachments[.scaleFactor] as? Double ?? 0.0

## Topics

### Frame information constants

- [status](screencapturekit/scstreamframeinfo/status.md)
- [displayTime](screencapturekit/scstreamframeinfo/displaytime.md)
- [scaleFactor](screencapturekit/scstreamframeinfo/scalefactor.md)
- [contentScale](screencapturekit/scstreamframeinfo/contentscale.md)
- [contentRect](screencapturekit/scstreamframeinfo/contentrect.md)
- [boundingRect](screencapturekit/scstreamframeinfo/boundingrect.md)
- [screenRect](screencapturekit/scstreamframeinfo/screenrect.md)
- [dirtyRects](screencapturekit/scstreamframeinfo/dirtyrects.md)
- [presenterOverlayContentRect](screencapturekit/scstreamframeinfo/presenteroverlaycontentrect.md)

### Initializers

- [init(rawValue:)](screencapturekit/scstreamframeinfo/init(rawvalue:).md)

### Type Properties

- [videoOrientation](screencapturekit/scstreamframeinfo/videoorientation.md)

## Relationships

### Conforms To

- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Output processing

- [SCStreamOutput](screencapturekit/scstreamoutput.md)
- [SCStreamOutputType](screencapturekit/scstreamoutputtype.md)
- [SCFrameStatus](screencapturekit/scframestatus.md)
