displayedPixelBuffer()
Returns the pixel buffer that the player layer currently displays.
Declaration
func displayedPixelBuffer() -> CVPixelBuffer?Return Value
The currently displayed pixel buffer, or nil if one isn’t available.
Discussion
This method only returns an image when playback is in a paused state, and otherwise returns nil. It also returns nil when displaying protected content or if the layer isn’t currently displaying an image.