Answer the question
In order to leave comments, you need to log in
Why is the video not playing in chromium?
Video not playing in chromium. On a localhost running Windows, when launched using puppeteer, play is simply pressed and the video remains as a picture. Googling, I realized that chromium is not covered by the video codec license that is in chrome. Installed chromium-codecs-ffmpeg-extra on a server running ubuntu. Now there is a different situation when the click is triggered and the video starts, an error is thrown:
Error: Evaluation failed: DOMException at ExecutionContext.evaluateHandle
await Promise.all([
// нажатие на play
page.click(' #react-root > ...long selector... > div'),
// запуск видео
page.evaluate(() =>
document.querySelector(' #react-root > ...long selector... > video').play()),
]);
Answer the question
In order to leave comments, you need to log in
Go to https://html5test.com to see what the current build supports. If the assembly does not support codecs, you need to rebuild Chromium from the sources, after enabling codec support in the sources.
To be honest, xs, what does node.js have to do with it, maybe the server is purple on client codecs, it stupidly distributes bytes, and the client decides what to do with them.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question