Skip to content

fix(apple): send video headers with separate audio - #1818

Merged
houko merged 1 commit into
mainfrom
fix/apple-video-audio-headers-681
Nov 22, 2026
Merged

houko merged 1 commit into
mainfrom
fix/apple-video-audio-headers-681

Conversation

@houko

@houko houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator

A finite video that needs Referer or Cookie can load its picture on Apple while its separate AudioSource fails authorization. The audio asset previously opened through AVFoundation's native URL loader, which omitted Video.Headers.

The video and audio assets now use the existing resource loader for direct HTTP files. Each asset owns its requests and delegate until playback closes, including deferred release during Picture in Picture. Both tracks retain the shared composition and seek behavior. Public docs and the agent skill describe the audio headers.

Refs #681. Separate audio on other players and HLS headers remain tracked in the roadmap.

Verification

  • The native protected picture/audio composition test failed before the fix with omitted headers and AVFoundation's permission error, then passed with both tracks present and the pending seek applied.
  • The native protected reactive-video test, nine Apple playback/redirect tests and the docs/skill test passed. Twelve focused tests passed with no skips.
  • go tool nsgo check -target macos,ios,ios_simulator,tvos,tvos_simulator -jobs 2 passed, covering both macOS architectures plus iOS and tvOS device/simulator builds.
  • git diff --check passed.

Playback was exercised on macOS. iPhone and Apple TV coverage here comes from their target checks.

@github-actions github-actions Bot added bug Something isn't working documentation Improvements or additions to documentation macOS iOS core size/S labels Nov 22, 2026
@houko

houko commented Nov 22, 2026

Copy link
Copy Markdown
Collaborator Author

Reviewed. Audio now goes through the same videoAssetWithHeaders path as the picture, and close releases both resource loaders; the native composition test rejects requests without the headers.

@houko
houko enabled auto-merge (rebase) November 22, 2026 04:17
@houko
houko force-pushed the fix/apple-video-audio-headers-681 branch 2 times, most recently from 15eb2fa to 441f3fb Compare November 22, 2026 08:17
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko removed this pull request from the merge queue due to a manual request Nov 22, 2026
@houko
houko force-pushed the fix/apple-video-audio-headers-681 branch from 441f3fb to 27b6c0e Compare November 22, 2026 09:37
@houko
houko enabled auto-merge November 22, 2026 09:37
@houko
houko force-pushed the fix/apple-video-audio-headers-681 branch from 27b6c0e to 2c378ba Compare November 22, 2026 09:39
@houko
houko added this pull request to the merge queue Nov 22, 2026
@houko
houko merged commit 0b17afc into main Nov 22, 2026
15 of 22 checks passed
@houko
houko deleted the fix/apple-video-audio-headers-681 branch November 22, 2026 14:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working core documentation Improvements or additions to documentation iOS macOS size/S

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant