We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Can someone help me with it, video quality is very low & file size is low (< 250 kb) Here is my code
const file = fs.createWriteStream(`./videos/vid-${new Date().getMilliseconds()}.webm`); const browser = await launch({ executablePath: "C:/Program Files/Google/Chrome/Application/chrome.exe", args: ["--autoplay-policy=no-user-gesture-required"], defaultViewport: { width: 1536, height: 703, }, headless: "new", }); const page = await browser.newPage(); await page.goto("http://localhost:3000?capture=true"); const stream = await getStream(page, { audio: true, video: true, // bitsPerSecond: 100000000, videoConstraints: { mandatory: { width: 1536, height: 703, frameRate: 60, facingMode: "environment", advanced: [{ width: 1920, height: 1280 }, { aspectRatio: 1.333 }], }, }, }); const element = await page.waitForSelector(".playBtn"); element?.click(); stream.pipe(file); setTimeout(async () => { await stream.destroy(); file.close(); console.log("finished"); await browser.close(); (await wss).close(); }, 1000 * 10); }
The text was updated successfully, but these errors were encountered:
Same problem. Is this a bug or somewhere setting problem?
Sorry, something went wrong.
Same issue, Anyone have any fixes ?
No branches or pull requests
Can someone help me with it, video quality is very low & file size is low (< 250 kb)
Here is my code
The text was updated successfully, but these errors were encountered: