You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
772 B
32 lines
772 B
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();
|
|
});
|
|
},
|
|
};
|
|
|