puppeteer/puppeteer

Video Playback Fails

benjamingr opened this issue ยท 7 comments

Video playback does not work with puppeteer.

Sample code:

const browser = await puppeteer.launch({headless: false}); // reproduces with headless: true too
const page = await browser.newPage();
await page.goto('https://video-dev.github.io/hls.js/demo/');

Expected result: big buck bunny plays at https://video-dev.github.io/hls.js/demo/
Result: no video playback with the error:

your Browser does not support MediaSourceExtension / MP4 mediasource toggle playback controls

I think is is because the MP4 codec is under a paid license fee. Which means it isn't distributed with Chromium but only within Google Chrome.

mp4 is missing in chromium: https://www.chromium.org/audio-video

https://www.quirksmode.org/html5/tests/video.html as well to test. MP4 fails, but OGG Theora and WebM both play fine with Chromium.

Thanks for the amazingly fast response!

I'll resolve this by using Chrome instead as suggested in #288

You'd need to be on Chrome Canary to get accurate enough runnings at this point. Puppeteer relies on some bleeding-edge changes on Chromium internally. Which have yet to get out to even Dev Channel. So while Chrome may work, it isn't currently guaranteed to work.

Thanks, that's probably something you're going to want to document.

It's noted under the installation section of the README.