Skip to content

Commit

Permalink
fix: add codecs for video playback in WebKit (#26)
Browse files Browse the repository at this point in the history
  • Loading branch information
aslushnikov committed Jul 29, 2020
1 parent 324c29c commit 50b6389
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1192,8 +1192,9 @@ async function run() {
...deps.firefox,
...deps.webkit
]);
// For video playback in Firefox
await exec('sudo', ['apt-get', 'install', 'ffmpeg']);
// - `ffmpeg`: For video playback in Firefox
// - `gstreamer1.0-plugins-good`: For video playback in WebKit
await exec('sudo', ['apt-get', 'install', 'ffmpeg', 'gstreamer1.0-plugins-good']);
// For headful execution
await exec('sudo', ['apt-get', 'install', 'xvfb'])
}
Expand Down
5 changes: 3 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -233,8 +233,9 @@ async function run() {
...deps.firefox,
...deps.webkit
]);
// For video playback in Firefox
await exec('sudo', ['apt-get', 'install', 'ffmpeg']);
// - `ffmpeg`: For video playback in Firefox
// - `gstreamer1.0-plugins-good`: For video playback in WebKit
await exec('sudo', ['apt-get', 'install', 'ffmpeg', 'gstreamer1.0-plugins-good']);
// For headful execution
await exec('sudo', ['apt-get', 'install', 'xvfb'])
}
Expand Down

0 comments on commit 50b6389

Please sign in to comment.