Skip to main content
Version: 8.14.0

Getting started with CMCD on iOS

Media player clients can transmit useful information to Content Delivery Networks (CDNs) with each object request. This implementation supports Common Media Client Data (CMCD) as defined in CTA-5004, published in September 2020.

Usage

To enable CMCD, developers can set the cmcd parameter inside a SourceDescription.

let typedSource = TypedSource(src: "<HLS_STREAM_URL>", type: "application/x-mpegurl", cmcd: true)
let sourceDescription = SourceDescription(source: typedSource)
theoplayer.source = sourceDescription

Remarks

Note that CMCD is only supported on iOS 18.0+.