Skip to content

feat(apple): send headers with finite video requests - #1771

Merged
houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/apple-video-headers-681
Nov 21, 2026
Merged

houko merged 1 commit into
nsgo-dev:mainfrom
houko:feat/apple-video-headers-681

Conversation

@houko

@houko houko commented Nov 21, 2026

Copy link
Copy Markdown
Collaborator

Summary

Honor core.Video.Headers for finite HTTP and HTTPS video files on macOS, iOS and tvOS. AVFoundation plays and seeks the asset while its resource loader requests byte ranges with the configured headers. Same-origin redirects keep those headers. Cross-origin redirects keep the player range and drop the configured headers.

The synchronized audio source continues to load independently. The roadmap tracks HLS headers and the remaining backends. Refs #681.

Targets

Shared video documentation and the Apple player on macOS, iOS and tvOS.

Screenshots

None.

Verification

  • go tool nsgo check ./internal/platform/apple passed.
  • The Apple transport test verified byte ranges and header removal at a cross-origin redirect.
  • The macOS native tests played a protected MOV through a same-origin redirect, played a second protected URL from SourceFunc, and passed the existing separate-audio and seek regression.
  • On an iPhone 16 simulator running iOS 18.4, the native composition regression played a video requiring Referer, loaded the separate audio URL independently and advanced after a seek queued during loading.
  • git diff --check passed. tvOS playback awaits device or simulator verification.

@github-actions github-actions Bot added enhancement New feature or request size/M documentation Improvements or additions to documentation macOS iOS core labels Nov 21, 2026
@houko
houko force-pushed the feat/apple-video-headers-681 branch from 82b4fc6 to 1abc50d Compare November 21, 2026 21:24
@houko
houko merged commit f0fccfb into nsgo-dev:main Nov 21, 2026
6 of 20 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

core documentation Improvements or additions to documentation enhancement New feature or request iOS macOS size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant