Skip to content

feat(apple): play separate video audio in sync - #1651

Merged
houko merged 3 commits into
nsgo-dev:mainfrom
houko:feat/apple-video-audio-source-681
Nov 21, 2026
Merged

houko merged 3 commits into
nsgo-dev:mainfrom
houko:feat/apple-video-audio-source-681

Conversation

@houko

@houko houko commented Nov 21, 2026 •

Copy link
Copy Markdown
Collaborator

Summary

Set core.Video.AudioSource to play a separate audio file or URL with a finite video on macOS, iOS and tvOS. AVFoundation puts both tracks on one timeline, so playback and seeks move them together. The video sets the duration and a seek requested during loading is applied when the item is ready.

The iOS simulator CI job now exercises this path. Apple mobile test bundles use Go's test result markers so a native log entry without a trailing newline cannot hide the final test result.

Refs #681. Android request headers are in #1647. The roadmap tracks headers and synchronized audio on the other players.

Targets

  • Shared code (core.Video)
  • macOS
  • iOS
  • tvOS

Verification

  • The native iOS composition test passed three runs on the iOS 27.0 simulator. It served the tracks separately over HTTP, queued a seek while audio was pending, confirmed one native track of each type, and observed playback advance from the requested position.
  • The macOS native composition test passed on arm64 using the same network and seek scenario. The existing alpha-pixel test skipped capture because WindowServer did not supply a picture.
  • Eight core tests and five CLI result-parser tests passed. The Web test target smoke test also passed.
  • CLI vet, actionlint, and target checks for macOS arm64 and amd64, iOS, iOS Simulator, and tvOS Simulator passed.
  • Playback on physical iOS and tvOS devices.

The previous Apple CI run hit the intermittent native sound-test crash tracked in #801.

Checklist

  • The public docs, architecture notes, roadmap, skill reference and changelog cover separate audio.
  • The regression uses the repository's video fixture and generates its WAV locally.

@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-audio-source-681 branch from 117be23 to f5a6ffb Compare November 21, 2026 17:50
@houko
houko force-pushed the feat/apple-video-audio-source-681 branch from f5a6ffb to 624ad25 Compare November 21, 2026 17:51
@github-actions github-actions Bot added size/M and removed size/L labels Nov 21, 2026
@github-actions github-actions Bot added size/L and removed size/M labels Nov 21, 2026
@houko
houko merged commit a0baacf into nsgo-dev:main Nov 21, 2026
11 of 19 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci cli core documentation Improvements or additions to documentation enhancement New feature or request iOS macOS size/L

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant