iOS 26.4 may ignore `.pauses` background playback policy when video is onscreen

GitHub source

Reproduced. This page is generated from GitHub Issue #21; GitHub remains the canonical authoring and discussion source.

Source#

Apple Developer Forums — “iOS 26.4 regression: The .pauses audiovisual background playback policy does not pause video playback anymore when backgrounding the app”, active June–July 2026, Feedback FB22488151:
https://developer.apple.com/forums/topics/media-technologies/media-technologies-video?page=2&sortBy=newest

Independent public reproduction/known-issue record from SRG SSR Pillarbox also tracks FB22488151:
https://github.com/SRGSSR/pillarbox-apple/blob/main/docs/KNOWN_ISSUES.md

Apple API contract:

Problem#

Starting with iOS 26.4 / the iOS 26.4 SDK, a reported regression allows audiovisual AVPlayer playback to continue after the app backgrounds or the device locks even when:

player.audiovisualBackgroundPlaybackPolicy = .pauses

The report specifically involves an AVPlayer with a video layer displayed onscreen and no Picture in Picture requirement. It also reports the behavior in Apple's TV app. A separate open-source media framework independently records the same feedback number and says both .automatic and .pauses can continue instead of automatically pausing.

This is the inverse of the more common “unexpected background pause” incident: here the explicit public policy requests a pause, but the observed transport state continues.

Evidence level#

DOCUMENTED#

Apple defines audiovisualBackgroundPlaybackPolicy as the policy controlling audiovisual playback when the app transitions to the background. Apple defines .pauses as “The app pauses playback.” .automatic delegates the decision to the system, while .continuesIfPossible requests continuation when possible.

OBSERVED#

The Apple Developer Forums report scopes the change to iOS 26.4 and reports continuation on app background/device lock despite .pauses. FB22488151 was filed. SRG SSR's Pillarbox known-issues document independently tracks the same failure and feedback identifier.

IMPLEMENTATION EVIDENCE#

None established yet. No public stack trace or Apple framework symbol currently proves which internal policy evaluator or transport command fails.

INFERENCE#

The strongest initial hypothesis is not “background audio is misconfigured,” but that the transition:

background/lock event
→ resolve audiovisual background policy
→ issue transport pause

is failing or bypassed for a particular player/video-output topology on affected builds.

UNKNOWN#

  • Whether the defect depends on linking against the iOS 26.4 SDK versus only running on iOS 26.4.
  • Whether merely attaching an AVPlayerLayer is sufficient, or the layer must be visible/onscreen.
  • Whether .pauses is ignored while .automatic follows a separate regression path.
  • Whether audio-only playback is intentionally unaffected.
  • The exact fixed OS build, if any.

Investigation / Explanation#

Do not treat “app entered background” and “AVPlayer paused” as one event. Trace the policy chain:

scene/app active
→ background or device-lock transition
→ AVPlayer background-policy evaluation
→ requested transport action
→ rate/timeControlStatus transition
→ timebase progression
→ audio/video rendering

The public contract gives a strong invariant:

explicit policy == .pauses
+ audiovisual playback
+ app transitions to background
→ player should pause

Instrument a single monotonic timeline around the transition:

UIApplication state / UIScene.activationState
player.audiovisualBackgroundPlaybackPolicy
player.rate
player.timeControlStatus
AVPlayer.rateDidChangeNotification
currentTime progression
AVPlayerItem.status
AVAudioSession interruption / route notifications
PiP controller presence and active state
AVPlayerLayer presence, visibility, window attachment

The decisive question is whether iOS 26.4:

  1. never evaluates .pauses,
  2. evaluates it but never issues a rate-zero/pause action,
  3. issues the action but another system policy immediately resumes playback, or
  4. changes only video presentation while the player timebase continues.

Do not infer any of these from audible playback alone.

Verification matrix#

Use the same local MP4 first to remove HLS/network variables:

A. iOS 26.3 + .pauses + visible AVPlayerLayer
B. iOS 26.4 + .pauses + visible AVPlayerLayer
C. latest iOS 26.x + .pauses + visible AVPlayerLayer
D. iOS 27 + .pauses + visible AVPlayerLayer

E. iOS 26.4 + .automatic
F. iOS 26.4 + .continuesIfPossible

G. iOS 26.4 + .pauses + no AVPlayerLayer
H. iOS 26.4 + .pauses + attached but hidden/off-window layer
I. iOS 26.4 + .pauses + visible layer

J. background via Home gesture
K. device lock
L. Control Center / Notification Center without actual backgrounding

M. no PiP controller
N. PiP controller attached but inactive

Also separate runtime and SDK effects by testing, where practical:

old-SDK-linked binary on iOS 26.4
26.4-SDK-linked binary on iOS 26.4

Interpretation:

A pauses, B continues
→ OS-version regression strongly supported

G pauses, I continues
→ video-output/layer topology is a causal discriminator

old binary works, new-linked binary fails on same OS
→ SDK/link-time behavior becomes primary

Home/lock fail but overlays do not
→ actual background transition, not generic system UI visibility, is the boundary

rate remains 1.0 and currentTime advances
→ transport pause was not applied

rate briefly becomes 0 then returns to 1.0
→ find the second actor that resumes playback

Solution / Guideline#

Until Apple identifies a fixed build:

  1. Keep .pauses configured because it expresses the intended supported policy; do not replace it with undocumented behavior.
  2. On affected OS builds, observe the real scene/application background transition and verify the resulting player transport state.
  3. If product correctness requires an unconditional pause, explicitly call pause() as a version-scoped containment after the app actually backgrounds, while preserving the user's prior play/pause intent so foregrounding does not blindly resume playback.
  4. Do not use audio-session deactivation, HLS cancellation, player-item recreation, or decoder teardown to emulate a pause; those operate at the wrong layer.
  5. Do not pause merely because Notification Center or Control Center is visible. Distinguish actual background lifecycle from transient system UI.
  6. Retest containment on the first OS release where Apple fixes the policy and remove redundant app-owned policy code when safe.
  7. For Feedback, provide the exact OS build, SDK/link version, player policy, layer/PiP topology, and a monotonic trace of lifecycle → rate → timeControlStatus → currentTime.

Reusable engineering rule#

A declarative media policy is not proof that its transport transition occurred; verify the state transition the policy is supposed to cause.

For lifecycle-sensitive AVPlayer bugs, keep these boundaries separate:

lifecycle event
→ policy evaluation
→ transport command
→ AVPlayer state
→ timebase progression
→ rendered/audible result

When the documented policy and observed playback disagree, the first missing transition is the debugging boundary. This avoids compensating at unrelated layers such as HLS, FairPlay, or AVAudioSession.

References#