New issue
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
Support for custom Puppeteer / Apple M1 support #132
Conversation
Currently it works on the default chromium revision |
product: productName, | ||
host: 'https://storage.googleapis.com', | ||
}); | ||
const revisionInfo = browserFetcher.revisionInfo('848005'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pretty impressive!
So this will only work if someone has exactly Chrome 84.8005 installed though? 🤔 Might be a bit too strict, maybe better to check for path (e.g. /Applications/Google Chrome.app)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
actually 848005 corresponds to Chromium 90.0.4403.0.
To check for executable path for chrome or chromium for each os is a bit complicated than it seems. Figuring out how to write the script for chrome or chromium executable for each os.
Currently how it works (in linux) is that if you don't have the chormium executable in puppeteer-core
it downloads the default Chromium 90.0.4403.0
in node-modules/puppeteer-core/.local-chromium
and from the next time it automatically detects the executable path in .local-chromium
and use that chromium executable.
Let's also have a setting in config file |
will work on it. |
Would this also make it possible to use H.264/MP4 videos with the |
No it won't. It will make if you go to
I hope it helps. @monophthongal |
According to https://stackoverflow.com/questions/47976790/play-mp4-in-chromium-with-puppeteer-windows it might, have you tested this? would be amazing as I don't really want to convert every mp4 to a webm since that's super slow |
Thanks for the pointer. Now I think it will be possible @monophthongal will try to solve it asap. thank you @joshlatimer. |
Looking and working well! I did some things as well:
There are a few things still left to do:
@Iamshankhadeep do you want to finish the PR off? Thanks for this great PR! Works even better than I expected it could 😊 🙌 |
Yeah I will finish this PR and you can tweak later if needed. @JonnyBurger |
fixes #39
Fixes #109
Fixes #131
To do