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

demo.js assumes that unprefixed MediaStream is Firefox-only #63

Open
foolip opened this issue Dec 17, 2016 · 0 comments
Open

demo.js assumes that unprefixed MediaStream is Firefox-only #63

foolip opened this issue Dec 17, 2016 · 0 comments

Comments

@foolip
Copy link

foolip commented Dec 17, 2016

if ((typeof MediaStream !== "undefined" && MediaStream !== null) && stream instanceof MediaStream) {

This code uses (typeof MediaStream !== "undefined" && MediaStream !== null) && stream instanceof MediaStream as the guard for a Firefox-only code path, where either video.mozSrcObject must be supported or one must support assigning a MediaStream instance to video.src. Neither on a path to standardization, only srcObject is.

This has broken the demo in Chrome 55, where I exposed the unprefixed MediaStream interface:
https://bugs.chromium.org/p/chromium/issues/detail?id=674608
https://bugs.chromium.org/p/chromium/issues/detail?id=649331

@alvestrand @henbos @guidou FYI

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

No branches or pull requests

1 participant