Skip to content

Commit

Permalink
fix fake screenshare resolution
Browse files Browse the repository at this point in the history
  • Loading branch information
vpalmisano committed Nov 14, 2024
1 parent c9383eb commit 1f102f5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions scripts/screenshare.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ webrtcperf.setupFakeScreenshare = ({
slides = 4,
delay = 15000,
animationDuration = 1000,
width = window.innerWidth,
height = window.innerHeight,
width = 1920,
height = 1080,
} = {}) => {
if (document.querySelector('#webrtcperf-fake-screenshare')) {
return
Expand Down Expand Up @@ -39,7 +39,7 @@ webrtcperf.setupFakeScreenshare = ({
wrapper.setAttribute('id', 'webrtcperf-fake-screenshare')
wrapper.setAttribute(
'style',
'position: fixed; top: 0; left: 0; width: 100vw; height: 100vh; z-index: -1; background-color: black; isolation: isolate; transform-style: flat;',
`position: fixed; top: 0; left: 0; width: ${width}; height: ${height}; z-index: -1; background-color: black; isolation: isolate; transform-style: flat;`,
)
document.body.appendChild(wrapper)
window.GET_DISPLAY_MEDIA_CROP = '#webrtcperf-fake-screenshare'
Expand Down

0 comments on commit 1f102f5

Please sign in to comment.