Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 11 additions & 2 deletions web/js/appcontroller.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,11 @@
const appd = document.getElementById("app");
const appTitle = document.getElementById("app-title");
const appScreen = document.getElementById("app-screen");

const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
const isMuted = urlParams.get('muted');
const isPaused = urlParams.get('paused');

var offerst;

const onConnectionReady = () => {
Expand All @@ -31,6 +35,11 @@

log.info("[control] app start");

if (isPaused) {
setTimeout(()=>{appScreen.pause()}, 3000);
;
}

// TODO: Remove
// socket.start(gameList.getCurrentGame(), env.isMobileDevice(), room.getId());

Expand Down Expand Up @@ -61,7 +70,7 @@
};

const onMouseDown = (data) => {
appScreen.muted = false;
appScreen.muted = isMuted ?? false;
rtcp.input(
JSON.stringify({
type: "MOUSEDOWN",
Expand Down
2 changes: 1 addition & 1 deletion winvm/supervisord.conf
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ stdout_logfile=/winevm/wineapp_out
stderr_logfile=/winevm/wineapp_err

[program:Xvfb]
command=/usr/bin/Xvfb :99 -screen 0 800x600x16
command=/usr/bin/Xvfb :99 -screen 0 800x600x24+32
autostart=true
autorestart=true
startsecs=5
Expand Down