Skip to content
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

feat: actually bundle FFMPEG binaries with NPM packages #3804

Conversation

aslushnikov
Copy link
Collaborator

@aslushnikov aslushnikov commented Sep 8, 2020

This patch:

  • adds FFMPEG binaries to the NPM packages
  • adds a screencast test to make sure that screencast works. This currently relies on private screencast APIs.

NOTE: with this patch playwright package size grows from 650KB to 4.2MB.

const context = await browser.newContext();
const page = await context.newPage();
const videoFile = path.join(__dirname, requireName + '--' + browserType + '-v.webm');
await playwright._toImpl(page)._delegate.startScreencast({outputFile: videoFile, width: 320, height: 240});
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Let's use public api instead?

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ah looked at the wrong screencast test for the inspiration 🤷‍♂️

@aslushnikov aslushnikov force-pushed the actuall-bundle-ffmpegs-with-npm-packages branch from 170f6c3 to 9eb019b Compare September 9, 2020 00:18
This patch:
- adds FFMPEG binaries to the NPM packages
- adds a screencast test to make sure that screencast works

Note: this currently relies on private screencast APIs.
@aslushnikov aslushnikov force-pushed the actuall-bundle-ffmpegs-with-npm-packages branch from 6f9ef20 to a43c63b Compare September 9, 2020 00:42
@aslushnikov aslushnikov merged commit 355ea73 into microsoft:master Sep 9, 2020
@aslushnikov aslushnikov deleted the actuall-bundle-ffmpegs-with-npm-packages branch September 9, 2020 00:51
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants