Apple AVPlayer

AVPlayer sends CMCD v1 for HLS once you opt in, and only as HTTP headers.

Updated

Support

CMCD AVPlayer on iOS 18, tvOS 18, macOS 15
CMCD v1 since iOS 18, tvOS 18, macOS 15
CMCD v2 since Not known
Default transmission Header only
On by default No

AVPlayer sends CMCD v1 for HLS from iOS 18, iPadOS 18, tvOS 18, macOS 15 and visionOS 2 once you opt in. It only uses headers, so your CDN must log the CMCD headers; the CDN guides show where this works.

Configuration

Swift
let asset = AVURLAsset(url: streamURL)
if #available(iOS 18.0, tvOS 18.0, macOS 15.0, visionOS 2.0, *) {
  asset.resourceLoader.sendsCommonMediaClientDataAsHTTPHeaders = true
}
let player = AVPlayer(playerItem: AVPlayerItem(asset: asset))
  • AVPlayer does not send the content ID (cid), requested maximum throughput (rtp) or top bitrate (tb).
  • There is no API to set the session ID, add custom keys or switch to query parameters.

AVFoundation API reference