SamuelScheit / puppeteer-stream

A Library for puppeteer to retrieve audio and/or video streams
MIT License
335 stars 105 forks source link

outdated puppeteer version #26

Closed KennyHarrer closed 2 years ago

KennyHarrer commented 2 years ago

ERROR: https://www.toptal.com/developers/hastebin/umowehuwej.sql not sure what else I can say... All I do is start a steam with:

const stream = await getStream(tab, { audio: true, video: true, frameSize: 1000 })

launch options:

browser = await launch({ headless: false, args: ['--window-size=1080,1920', '--start-fullscreen', '--autoplay-policy=no-user-gesture-required', '--disable-infobars', "--no-default-browser-check","–allow-file-access-from-files","-disable-web-security"], ignoreDefaultArgs: ['--enable-automation'], });

KennyHarrer commented 2 years ago

updated error link: https://pastebin.com/raw/LF4pfdxA

KennyHarrer commented 2 years ago

after adding in a missing await now im getting this error: https://pastebin.com/raw/XTwaFXng

SamuelScheit commented 2 years ago

It looks like chrome.tabCapture isn't defined. What version of puppeteer are you using?

KennyHarrer commented 2 years ago

image

SamuelScheit commented 2 years ago

It looks like you are using an outdated version of puppeteer, please upgrade to the latest one:

npm install puppeteer@latest
KennyHarrer commented 2 years ago

I did not update, however after I removed 2 flags from the launch args it started working. I currently cannot get to my computer to check which two resolved this issue, but I will let you know as soon as I find them.

SamuelScheit commented 2 years ago

@KennyHarrer any updates?

KennyHarrer commented 2 years ago

I removed the following args and it started working: "–allow-file-access-from-files","-disable-web-security"