Skip to content

feat(android): send video request headers - #1647

Merged
houko merged 2 commits into
nsgo-dev:mainfrom
houko:feat/video-request-headers-681
Nov 21, 2026
Merged

houko merged 2 commits into
nsgo-dev:mainfrom
houko:feat/video-request-headers-681

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

  • Add core.Video.Headers for Android HTTP and HTTPS media sources. The core snapshots the header map when the video mounts and sends it with each URL supplied by SourceFunc.
  • Pass the headers to Android's native MediaPlayer and rebuild DEX and JAR from main's Java runtime, including the Play Review and Gamepad protocol additions.
  • Document the native player's redirect setting in the English and Chinese guides.

Verification

  • On a physical Pixel, a local MP4 server verified Referer, User-Agent and Cookie on the initial request, after a same-origin redirect, and after the reactive video source changed. The native player loaded and advanced on both sources.
  • All eight core video tests, both Android Java/Go protocol tests, and the public API layering test passed. The repository-wide go tool nsgo check -target android_arm64 -jobs 2 also passed.

Refs #681. Apple separate-audio playback is tracked in #1651. The issue also tracks request headers and separate audio on the other backends.

@github-actions github-actions Bot added enhancement New feature or request size/M documentation Improvements or additions to documentation Android core conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/video-request-headers-681 branch from bfbd0d8 to 4070d96 Compare November 21, 2026 12:51
@github-actions github-actions Bot removed the conflict Conflicts with the base branch; resolve it first label Nov 21, 2026
@houko houko mentioned this pull request Nov 21, 2026
10 of 11 tasks
@github-actions github-actions Bot added the conflict Conflicts with the base branch; resolve it first label Nov 21, 2026
@houko
houko force-pushed the feat/video-request-headers-681 branch from 4070d96 to d830f54 Compare November 21, 2026 13:13
@github-actions github-actions Bot added conflict Conflicts with the base branch; resolve it first and removed conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/video-request-headers-681 branch from d830f54 to e412575 Compare November 21, 2026 16:38
@github-actions github-actions Bot added conflict Conflicts with the base branch; resolve it first and removed conflict Conflicts with the base branch; resolve it first labels Nov 21, 2026
@houko
houko force-pushed the feat/video-request-headers-681 branch from e412575 to 18a0fa1 Compare November 21, 2026 19:16
@houko
houko merged commit 8d1129c into nsgo-dev:main Nov 21, 2026
4 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Android conflict Conflicts with the base branch; resolve it first core documentation Improvements or additions to documentation enhancement New feature or request size/M

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant