Closed Aliaksandr-Kasko-JazzTeam closed 2 years ago
Hello Aliaksandr! Try adding '--window-size=1920,1080', '--start-fullscreen'
to your args.
Hi, @KennyHarrer.
No, it doesn't matter.
Even when I set args: ['--no-sandbox', `--window-size=${width},${height}`, '--start-fullscreen']
or without '--start-fullscreen'
. All the same. Video size is 1920x1080. I need it to be 300x600 in this case
Have you tried setting the page view port?
page.setViewport({width:300,height:600})
Yes, I tried this. And it has no effect.
I believe that the background extension that is invoking the chrome.tabCapture.capture needs to allow for videoConstraints to be passed through to override the minWidth, maxWidth, minHeight and maxHeight of the video. I've found this can allow for the output video size to match your expected resolution.
resolved with #32
Even when I create browser with defined viewport (i.e. 300*600)
video size of recorded video will be 1920*1080. What am I doing wrong?