Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
giongto35 committed Jun 26, 2021
1 parent 35a508e commit 410327f
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
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

0 comments on commit 410327f

Please sign in to comment.