feat: theatre videos (client 1.3.2)

The game page could load nothing but its own server, so the theatre's
YouTube video (staff's, for the room) and a player's own video link were
blocked and showed black. It may now load the YouTube and Vimeo players'
hosts, and the one sound or video file link the player put in the
theatre's box, which the page passes on through the login page. Requests
of the Flash plugin itself stay on the game's server.

Not with onBeforeSendHeaders: in Electron 11 a listener there, even one
that changes nothing, stops YouTube's player.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
BurrowdevandClaude Opus 5.5 committed 2026-10-21 02:13:42 +03:00
1 parent 2b70e10624
commit 1d12b7c238
5 files changed
+68 -2

No files matched your search

+6
View File
@@ -1166,6 +1166,12 @@
// main.js opens http and https addresses only
window.client.openPage(String(event.args[0]));
}
else if (event.channel === "ownVideo") {
// the player's own theatre video (the game page's link box): main.js
// lets that one address load, then the page plays it.
const link = String(event.args[0] || "");
window.client.ownVideo(link).then(() => webview.send("ownVideoReady", link));
}
else if (event.channel === "presence") {
// where the player is now (the game's AJClient.presenceRoom)
showPresence(String(event.args[0] || ""));