mozilla / popcorn-js

The HTML5 Media Framework. (Unmaintained. See https://github.com/menismu/popcorn-js for activity)
MIT License
2.14k stars 632 forks source link

Force PopcornJS to Prefer HTML5 Media #429

Open apricated opened 9 years ago

apricated commented 9 years ago

Noticing some issues with embed iframes from YouTube, when browser tries to load Flash version of YT's player (Safari on Mac; Firefox on Windows and Mac). Is there a way to force Popcorn to prefer the HTML5 player -- or a fork/plugin that does the same?

ScottDowne commented 9 years ago

The YouTube wrapper should default to HTML5 if not explicitly told otherwise.

YouTube then falls back to flash if HTML5 is not available.

Or, that's how it should work, and if it's not, it sounds like a bug.

apricated commented 9 years ago

@ScottDowne

Thanks for the reply.

Looked into it further, and noticed the Flash player was being invoked both when the YouTube video played successfully, and when it failed.

It's totally intermittent; the same code will work one moment, and fail the next, with no difference in output to the error console.

Could be the same as this issue: https://github.com/mozilla/popcorn-js/issues/423