diff --git a/index.html b/index.html index 000b4d6756fe8cc3a7df371ce563dad1d5bffeb3..039380f7d6ff9f1e42171394fcb9945c14373100 100644 --- a/index.html +++ b/index.html @@ -16,9 +16,9 @@ position: relative; } #video{display:none; position:absolute; top: 0px; left: 0px;} - #mirror{position:absolute; top:0px; bottom: 0px; left: 0px;} + #mirror{position:absolute; top:0px; bottom: 0px; right: 0px; border: 1px solid pink; } #photo{display:none; position:absolute; bottom: 0px; right: 0px;} - #slides{position:absolute; top: 0px; bottom:0px; right: 0px;} + #slides{position:absolute; top: 0px; bottom:0px; left: 0px; transform: rotate(-90deg); border: 1px solid green;} </style> <video id=video></video> @@ -182,7 +182,7 @@ var sourceBuffer=source.addSourceBuffer("video/webm;codecs=vp8"); var recorder=new MediaRecorder(stream); recorder.ondataavailable=function(e){ - e.data.arrayBuffer().then(function(buf){ + new Response(e.data).arrayBuffer().then(function(buf){ sourceBuffer.appendBuffer(buf); }); } diff --git a/run.sh b/run.sh new file mode 100755 index 0000000000000000000000000000000000000000..7a3d89298cd267bfbbe055a51a9d4f5dbbd4a4e5 --- /dev/null +++ b/run.sh @@ -0,0 +1,24 @@ +#!/bin/sh + +cd `dirname "$0"` + +python -m SimpleHTTPServer & + +# hide mousepointer +export DISPLAY=:0 +sleep 5 +#xrandr --output HDMI-0 --right-of DP-0 --rotate left +#sleep 5 + +# disable screen saver +xset s off +xset -dpms + + +chromium-browser --disable-infobars --incognito --use-fake-ui-for-media-stream --user-data-dir=chromium_tmp --disable-gpu-sandbox http://127.0.0.1:8000/index.html & +sleep 5 +xdotool getactivewindow windowmove 0 -100 windowsize 2390 1566 +xdotool getactivewindow windowmove 0 -100 windowsize 2390 1566 +xdotool mousemove 1920 1080 + +fg diff --git a/run_chrome.sh b/run_chrome.sh deleted file mode 100755 index 723159b5aaf01dad9194796dfb6b8af984ea7212..0000000000000000000000000000000000000000 --- a/run_chrome.sh +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/sh - -cd `dirname "$0"` - -# hide mousepointer -DISPLAY=:0 xdotool mousemove 1920 1080 -# disable screen saver -DISPLAY=:0 xset s off -DISPLAY=:0 xset -dpms - -# DISPLAY=:0 chromium-browser --kiosk --incognito --use-pulseaudio --use-fake-ui-for-media-stream --touch-events --disable-pinch --overscroll-history-navigation=0 --load-extension=ohnoyoudidnt http://127.0.0.1:8082/index.html -DISPLAY=:0 chromium-browser --incognito --use-pulseaudio --use-fake-ui-for-media-stream --touch-events --disable-pinch --overscroll-history-navigation=0 --load-extension=ohnoyoudidnt --js-flags="--expose-gc" --user-data-dir=chromium_tmp http://127.0.0.1:8082/index.html