Skip to content

fix: detach playback listeners before YouTube teardown - #11

Merged
kmanisk merged 1 commit into
mainfrom
fix/youtube-teardown
Oct 27, 2026
Merged

kmanisk merged 1 commit into
mainfrom
fix/youtube-teardown

Conversation

@kmanisk

@kmanisk kmanisk commented Oct 27, 2026 •

Copy link
Copy Markdown
Owner

Removing a participant with a real YouTube player loaded could blank the page: the SDK was destroyed before playback subscriptions were removed, so listener cleanup threw while reading the invalid iframe. Source replacement and leaving a room used the same ordering.

Dispose playback listeners/timers before destroying YouTube, with one component cleanup shared by both teardown paths. Playback synchronization, permissions and the socket protocol are unchanged.

Validation: real YouTube SDK source replacement and removal pass locally. A strict SDK fixture rejects calls after destruction and covers source replacement, removal and leaving. Lint/typecheck, 203 unit/integration tests, production build and 37/37 browser tests pass. Both CI checks are green, including Docker build, non-root execution and health checks.

Found during live QA of the requested be37ece deployment. Repeat production verification after deploying the exact merged fix SHA.

@kmanisk
kmanisk merged commit be7f39e into main Oct 27, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant