Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Paul Geisler
portramat-ii
Commits
649a47d2
Commit
649a47d2
authored
Dec 10, 2019
by
dronus
Browse files
adjustments and run.sh for live setup
parent
2b470ee1
Changes
3
Hide whitespace changes
Inline
Side-by-side
index.html
View file @
649a47d2
...
...
@@ -16,9 +16,9 @@
position
:
relative
;
}
#video
{
display
:
none
;
position
:
absolute
;
top
:
0px
;
left
:
0px
;}
#mirror
{
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
lef
t
:
0px
;}
#mirror
{
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
righ
t
:
0px
;
border
:
1px
solid
pink
;
}
#photo
{
display
:
none
;
position
:
absolute
;
bottom
:
0px
;
right
:
0px
;}
#slides
{
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
right
:
0
px
;}
#slides
{
position
:
absolute
;
top
:
0px
;
bottom
:
0px
;
left
:
0px
;
transform
:
rotate
(
-90deg
);
border
:
1
px
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
);
});
}
...
...
run.sh
0 → 100755
View file @
649a47d2
#!/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
run_chrome.sh
deleted
100755 → 0
View file @
2b470ee1
#!/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
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment