Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Video Playback Fails #291

Closed
benjamingr opened this issue Aug 16, 2017 · 7 comments · Fixed by #293

Comments

@benjamingr
Copy link

commented Aug 16, 2017

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

@Garbee

This comment has been minimized.

Copy link
Contributor

commented Aug 16, 2017

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.

@aslushnikov

This comment has been minimized.

Copy link
Collaborator

commented Aug 16, 2017

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

@Garbee

This comment has been minimized.

Copy link
Contributor

commented Aug 16, 2017

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

@benjamingr

This comment has been minimized.

Copy link
Author

commented Aug 16, 2017

Thanks for the amazingly fast response!

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

@Garbee

This comment has been minimized.

Copy link
Contributor

commented Aug 16, 2017

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.

@benjamingr

This comment has been minimized.

Copy link
Author

commented Aug 16, 2017

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

@Garbee

This comment has been minimized.

Copy link
Contributor

commented Aug 16, 2017

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
3 participants
You can’t perform that action at this time.