export default { viewport: { width: 1280, height: 720, }, fps: 60, start: 1, duration: 5, quiet: true, output: 'static/output.webm', launchArguments: ['--disable-setuid-sandbox', '--no-sandbox'], selector: 'canvas', preparePage: async function(page) { await page.evaluate(async () => { document.getElementById('clicktoplaydiv').hidden = true; function playWhenReady() { setTimeout(function () { if (window.gtk && window.gtk.play) { if (window.gtk.module.clickedToPlay) { return false; } else { window.gtk.play(); } } else { playWhenReady(); } }, 1000); } await playWhenReady(); }); }, };