diff --git a/web/js/appcontroller.js b/web/js/appcontroller.js index 3d44c9d..3589504 100644 --- a/web/js/appcontroller.js +++ b/web/js/appcontroller.js @@ -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 = () => { @@ -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()); @@ -61,7 +70,7 @@ }; const onMouseDown = (data) => { - appScreen.muted = false; + appScreen.muted = isMuted ?? false; rtcp.input( JSON.stringify({ type: "MOUSEDOWN", diff --git a/winvm/supervisord.conf b/winvm/supervisord.conf index f3ca642..f4a7ec8 100644 --- a/winvm/supervisord.conf +++ b/winvm/supervisord.conf @@ -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