cmsamplebuffer
Asked on 2025-06-24
1 search
The term "CMSampleBuffer" is mentioned in the context of capturing HDR content with ScreenCaptureKit and working with Apple Projected Media Profile.
In the session titled "Capture HDR content with ScreenCaptureKit" (WWDC 2024), CMSampleBuffer is used when capturing HDR content. Specifically, if your app needs CMSampleBuffers for screenshots, you can use the captureSampleBuffer
function. This is part of the new APIs to get HDR content from both streams and screenshots. You can find more about this in the session Capture HDR content with ScreenCaptureKit (05:51).
In the session "Learn about the Apple Projected Media Profile" (WWDC 2025), CMSampleBuffer is related to CM tagged dynamic buffers, which are used across multiple APIs to handle stereoscopic content, including editing APIs such as AV video composition. This is part of the discussion on video editing with the Apple Projected Media Profile. You can learn more about this in the session Learn about the Apple Projected Media Profile (11:47).
These sessions provide insights into how CMSampleBuffer is utilized in different contexts within Apple's frameworks.

Learn about the Apple Projected Media Profile
Dive into the Apple Projected Media Profile (APMP) and see how APMP enables 180º/360º and Wide FoV projections in QuickTime and MP4 files using Video Extended Usage signaling. We’ll provide guidance on using OS-provided frameworks and tools to convert, read/write, edit, and encode media containing APMP. And we’ll review Apple Positional Audio Codec’s (APAC) capabilities for creating and delivering spatial audio content for the most immersive experiences.

Capture HDR content with ScreenCaptureKit
Learn how to capture high dynamic colors using ScreenCaptureKit, and explore new features like HDR support, microphone capture, and straight-to-file recording.

Enhance your app’s audio recording capabilities
Learn how to improve your app’s audio recording functionality. Explore the flexibility of audio device selection using the input picker interaction on iOS and iPadOS 26. Discover APIs available for high-quality voice recording using AirPods. We’ll also introduce spatial audio recording and editing capabilities that allow you to isolate speech and ambient background sounds — all using the the AudioToolbox, AVFoundation, and Cinematic frameworks.