---
title: displayedReadOnlyPixelBuffer()
framework: avfoundation
role: symbol
role_heading: Instance Method
path: avfoundation/avplayerlayer/displayedreadonlypixelbuffer()
---

# displayedReadOnlyPixelBuffer()

Returns the pixel buffer which is currently being displayed.

## Declaration

```swift
func displayedReadOnlyPixelBuffer() -> CVReadOnlyPixelBuffer?
```

## Return Value

Return Value A CVReadOnlyPixelBuffer object.

## Discussion

Discussion CVReadOnlyPixelBuffer can be nil if the current player’s rate is non-zero, displayed pixel buffer is protected, no image is currently being displayed, or if the image is unavailable.

## See Also

### Processing pixel buffers

- [pixelBufferAttributes](avfoundation/avplayerlayer/pixelbufferattributes.md)
- [displayedPixelBuffer()](avfoundation/avplayerlayer/displayedpixelbuffer().md)
