Repository navigation
fix(android): allow background video in embedded views - #2308
Conversation
houko
left a comment
There was a problem hiding this comment.
The implementation and focused Android check match issue #2302, and the new background-video test is present. I cannot approve this pull request in its current state.
- GitHub reports the pull request as conflicting with main (mergeStateStatus: DIRTY).
- The Android Test workflow failed at internal/testhost/testdata/keys/mobilekeys_test.go:150 in TestAndroidHardwareKeysReleaseOnWindowLoss.
- The changed workflow line in .github/workflows/test.yml therefore does not have a green full-workflow result.
Please rebase onto current main, resolve the conflict, and rerun the complete required checks. The focused local check go tool nsgo check -target android ./internal/platform/android passes.
f66ca9d to
2703f91
Compare
houko
left a comment
There was a problem hiding this comment.
Source-level review against #2302. The option is threaded from nsgo.Launch through both desktop host backends into NsgoView, and the hidden-video path keeps the same native tree only while the host opted in. VideoNode moves progress callbacks to the engine UI handler, clears surfacePlaying on pause/release, and still destroys players on explicit detach. The native regression covers visibility pause, opt-in playback, removal from the window, repeat completion, reattachment, and explicit detach. I found no source-level defect in the implementation. The PR still needs its branch conflict and failed required Android workflow resolved before merge.
Summary
Fixes #2302.
NsgoView.setBackgroundVideoPlaybackEnabled(true)for Android hosts that keep the same view and engine in a media playback foreground service.Targets
Screenshots
None.
Verification
go tool nsgo checkgo tool nsgo check -target android -jobs 2internal/platform/android/runtime/build.shin a temporary directory.go tool nsgo test ./internal/platform/androidpassed 154 host tests.go tool nsgo testpassed 4,860 tests.TestMaxRefreshRateReadsEveryModealso failed on the unmodified upstream base on this Mac.Checklist
🤖 GPT-6