R
R
Rostislav2019-06-12 14:55:58
Chromium
Rostislav, 2019-06-12 14:55:58

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

Click code:
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

1 answer(s)
V
Vyacheslav Zolotov, 2019-06-12
@rostikowb

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 question

Ask a Question

731 491 924 answers to any question