Skip to content
New issue

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

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

Already on GitHub? # to your account

Video Playback Fails #291

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

Video Playback Fails #291

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

Comments

@benjamingr
Copy link

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
Copy link
Contributor

Garbee 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
Copy link
Contributor

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

@Garbee
Copy link
Contributor

Garbee 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
Copy link
Author

Thanks for the amazingly fast response!

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

@Garbee
Copy link
Contributor

Garbee 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
Copy link
Author

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

@Garbee
Copy link
Contributor

Garbee commented Aug 16, 2017

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

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants