CENC `cenc` media is not interchangeable with FPS `cbcs` on iOS/tvOS

GitHub source

Apple confirmed. This page is generated from GitHub Issue #30; GitHub remains the canonical authoring and discussion source.

Source#

Apple Developer Forums — “Request path for com.apple.coremedia.allow-mpeg4streaming on tvOS” (September 2026):
https://developer.apple.com/forums/thread/844691

The reported service receives fragmented MP4 from an upstream provider using ISO Common Encryption scheme cenc (AES-CTR). No corresponding cbcs rendition is available. The developer found an undocumented CoreMedia entitlement and asked whether it can enable this playback path for third-party iOS/tvOS apps.

Problem#

The debugging risk is to treat an undocumented entitlement as a codec/DRM compatibility switch.

For FairPlay Streaming, Apple’s public contract is narrower: FPS protects HLS content, and Apple’s FairPlay debugging guidance states that for fMP4 Common Encryption, Apple devices support the cbcs scheme. Apple’s CMAF/HLS documentation also states that EXT-X-KEY:METHOD=SAMPLE-AES for fragmented MP4 indicates ISO CENC cbcs.

Therefore a provider delivering only AES-CTR cenc is not supplying the documented FPS/HLS encryption form. An undocumented entitlement must not be assumed to convert cenc media into a supported FairPlay presentation.

Evidence level#

DOCUMENTED#

Apple TN2454 states that fMP4 sample encryption uses ISO/IEC 23001-7 Common Encryption and that Apple devices support cbcs for FairPlay Streaming.

Apple’s CMAF/HLS documentation states that fragmented MP4 with EXT-X-KEY:METHOD=SAMPLE-AES indicates the ISO CENC cbcs scheme.

Apple’s FPS landing page describes FairPlay Streaming as protection for streaming media delivered through HLS; current FPS SDK 26 specifically describes video key protection for CBCS-encrypted content.

OBSERVED#

The forum case has upstream media packaged as cenc/AES-CTR and no cbcs rendition. The developer identified com.apple.coremedia.allow-mpeg4streaming, but it is undocumented and not exposed as a normal Capability Request.

IMPLEMENTATION EVIDENCE#

The entitlement name exists in the observed platform environment, but its semantics, eligibility, and relation to protected playback are not a public contract.

INFERENCE#

The first compatibility boundary to test is the media encryption scheme, before key-server or entitlement debugging. If the exact same elementary media repackaged as cbcs enters the documented FairPlay key-request path while the cenc version does not, the scheme mismatch is the useful root-cause boundary.

UNKNOWN#

  • Whether Apple grants the named private entitlement to any third-party product class.
  • What internal CoreMedia behavior the entitlement controls.
  • Whether the reported provider has a supported Apple-platform delivery profile outside the developer’s current feed.

Investigation / Explanation#

Treat four layers independently:

container: fragmented MP4 / CMAF
        ↓
encryption scheme: cenc (AES-CTR) vs cbcs (pattern AES-CBC)
        ↓
HLS/FPS signaling: EXT-X-KEY / KEYFORMAT / KID
        ↓
AVContentKeySession: key request → SPC → CKC → decrypt

Do not jump directly from “fMP4 is Common Encryption” to “FairPlay can decrypt it.” CENC is a framework containing multiple protection schemes; the scheme identifier is part of the media contract.

The strongest experiment keeps encoded samples and business/key identity equivalent while changing packaging/encryption:

A. clear fMP4
B. same media packaged as cenc/AES-CTR
C. same media packaged as cbcs with documented FPS/HLS signaling

Capture whether AVFoundation reaches:

manifest accepted
→ init segment parsed
→ protection scheme recognized
→ AVContentKeyRequest emitted
→ SPC generated
→ CKC accepted
→ samples decrypted/rendered

The first transition where B differs from C is more useful than the final AVPlayer error.

TN2454 also recommends separating content-authoring/playback problems from KSM and client-FPS implementation problems. Do not modify KSM logic until the cbcs control proves the content reaches the key-delivery boundary.

Verification matrix#

Test Container Protection Expected diagnostic purpose
A fMP4 clear Prove codec/container/device decode path
B same fMP4 media cenc / AES-CTR Reproduce provider path
C same media cbcs Exercise documented FPS path
D same as C known-good Apple FPS test KSM/content Validate client FPS implementation
E same as C production KSM Isolate KSM/business-rule issues

For each run record: AVPlayerItem.status, complete NSError chain, whether AVContentKeySession receives a request, key identifier, init-segment protection scheme (schm semantics, not raw hex), playlist key signaling, and the first failed state.

Interpretation:

A works, B fails before AVContentKeyRequest, C reaches key request
→ encryption-scheme compatibility is isolated

C and D fail before key request
→ inspect authoring/client integration before KSM

D works, C reaches key request but E fails after SPC/CKC exchange
→ investigate production KSM/business rules

Solution / Guideline#

  1. Require an Apple-platform rendition authored with the documented FairPlay/HLS protection scheme (cbcs) when FairPlay playback is required.
  2. Validate the initialization segment’s scheme semantically; do not infer it from “CMAF”, “CENC”, or .mp4 alone.
  3. Use Apple FPS test content / known-good KSM controls to separate packaging from license-server defects.
  4. Treat undocumented entitlements as unsupported implementation details unless Apple explicitly documents eligibility and behavior for third-party apps.
  5. Do not build a production playback architecture around a private entitlement discovered by string/symbol inspection.
  6. If an upstream provider offers only cenc, escalate the packaging/profile requirement to the provider rather than attempting to reinterpret AES-CTR content as FairPlay cbcs client-side.

Reusable engineering rule#

“Common Encryption” is not a playback capability. Always identify the concrete protection scheme before debugging DRM keys.

Use this order:

container
→ scheme (`cenc` / `cbcs`)
→ HLS key signaling
→ AVContentKeyRequest
→ SPC/CKC
→ decrypt/render

If the presentation fails before AVContentKeyRequest, key-server debugging is downstream of the first failure.

References#