File tree 1 file changed +3
-3
lines changed
1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -5,8 +5,8 @@ webrtcperf.setupFakeScreenshare = ({
5
5
slides = 4 ,
6
6
delay = 15000 ,
7
7
animationDuration = 1000 ,
8
- width = window . innerWidth ,
9
- height = window . innerHeight ,
8
+ width = 1920 ,
9
+ height = 1080 ,
10
10
} = { } ) => {
11
11
if ( document . querySelector ( '#webrtcperf-fake-screenshare' ) ) {
12
12
return
@@ -39,7 +39,7 @@ webrtcperf.setupFakeScreenshare = ({
39
39
wrapper . setAttribute ( 'id' , 'webrtcperf-fake-screenshare' )
40
40
wrapper . setAttribute (
41
41
'style' ,
42
- ' position: fixed; top: 0; left: 0; width: 100vw ; height: 100vh ; z-index: -1; background-color: black; isolation: isolate; transform-style: flat;' ,
42
+ ` position: fixed; top: 0; left: 0; width: ${ width } ; height: ${ height } ; z-index: -1; background-color: black; isolation: isolate; transform-style: flat;` ,
43
43
)
44
44
document . body . appendChild ( wrapper )
45
45
window . GET_DISPLAY_MEDIA_CROP = '#webrtcperf-fake-screenshare'
You can’t perform that action at this time.
0 commit comments