mirror of
https://github.com/burrow-dev/burrow-client.git
synced 2026-11-20 01:37:50 -05:00
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:
1 parent
2b70e10624
commit
1d12b7c238
5 files changed
+68
-2
No files matched your search
@@ -26,6 +26,8 @@ contextBridge.exposeInMainWorld("client", {
|
||||
showFile: file => ipcRenderer.send("showFile", file),
|
||||
toggleFullscreen: () => ipcRenderer.send("toggleFullscreen"),
|
||||
openPage: url => ipcRenderer.send("openPage", url),
|
||||
// the player's own theatre video file, which the game page may then load; "" when stopped.
|
||||
ownVideo: link => ipcRenderer.invoke("ownVideo", link),
|
||||
// Discord rich presence (discord.js): {appId, state, start, url}, or null.
|
||||
presence: info => ipcRenderer.send("presence", info),
|
||||
onFullscreen: listener => ipcRenderer.on("fullscreen", (event, on) => listener(on)),
|
||||
|
||||
Reference in new issue
Block a user