Skip to content

fix(live-news): destroy player before offline/error message (fixes #347)#410

Merged
koala73 merged 1 commit intomainfrom
fix/live-news-black-screen-347
Feb 26, 2026
Merged

fix(live-news): destroy player before offline/error message (fixes #347)#410
koala73 merged 1 commit intomainfrom
fix/live-news-black-screen-347

Conversation

@koala73
Copy link
Owner

@koala73 koala73 commented Feb 26, 2026

Summary

  • showOfflineMessage() and showEmbedError() replaced this.content.innerHTML without calling destroyPlayer(), leaving this.player set
  • On next channel switch, initializePlayer() bailed early → black screen
  • Added this.destroyPlayer() at the top of both methods — it's idempotent so the onError path won't double-destroy

Closes #347

Co-authored-by: N Cho-chin (Niboshi-Wasabi) — original diagnosis in #388

Test plan

  • Add an offline channel → switch to it → switch back to a live channel → stream loads (was black)
  • Trigger embed error (e.g. region-blocked video) → switch to a live channel → stream loads

…347)

showOfflineMessage() and showEmbedError() replaced innerHTML without
cleaning up this.player, so initializePlayer() bailed early on the
next channel switch — leaving a black screen. destroyPlayer() is
idempotent so the onError path won't double-destroy.

Co-authored-by: N Cho-chin <Niboshi-Wasabi@users.noreply.github.com>
@vercel
Copy link

vercel bot commented Feb 26, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
worldmonitor Building Building Preview, Comment Feb 26, 2026 0:08am
worldmonitor-finance Building Building Preview, Comment Feb 26, 2026 0:08am
worldmonitor-happy Building Building Preview, Comment Feb 26, 2026 0:08am
worldmonitor-startup Building Building Preview, Comment Feb 26, 2026 0:08am

Request Review

@chatgpt-codex-connector
Copy link

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@koala73
Copy link
Owner Author

koala73 commented Feb 26, 2026

Deployed in #410 (comment)

@koala73
Copy link
Owner Author

koala73 commented Feb 26, 2026

thank you @Niboshi-Wasabi

koala73 added a commit that referenced this pull request Feb 26, 2026
Fixes:
- Linux AppImage black screen on WebKit/GStreamer (#411)
- Destroy live news player before showing offline/error message (#410)
@koala73 koala73 mentioned this pull request Feb 26, 2026
koala73 added a commit that referenced this pull request Feb 26, 2026
Fixes:
- Linux AppImage black screen on WebKit/GStreamer (#411)
- Destroy live news player before showing offline/error message (#410)
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.

Live News panel goes black after switching from offline channel back to live channel

1 participant