addyosmani / getUserMedia.js

Shim for getUserMedia(). Uses native implementation for modern browsers and a Flash fallback for everyone else.
MIT License
903 stars 158 forks source link

Demo is not working on Chrome, Firefox, Safari! #68

Open aniruddhashevle opened 6 years ago

aniruddhashevle commented 6 years ago

The demo link mentioned in the README.md is not woring on Chrome, Firefox, Safari. Please see the attached screen shots! It's working properly on IE!

On Chrome specifically for MAC OS, it's showing the error apply of undefined!

screen shot 2018-03-23 at 1 03 09 pm

On other browsers(including Chrome in Linux OS), video's src attribute doesn't get the proper value!

screen shot 2018-03-23 at 1 05 33 pm

nirbenya commented 6 years ago

Same for me

zx-sd commented 6 years ago

Same for me as well.

Pauldic commented 5 years ago

Anyone found any solution for this?

Tommy-yuan commented 5 years ago

Navigator.getUserMedia() is deprecated, use navigator.mediaDevices instead of the legacy method (https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia) e.g., navigator.getUserMedia_(option_object, successCallback, errorCallback); --> navigator.mediaDevices.getUserMedia(option_object) .then(function(stream){ successCallback(stream); }) .catch(function(err){ errorCallback(err); });

geekloper commented 5 years ago

For me it's not working in this version of IE as well :

image