Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Removed depricated function and changed eventListener #13

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

Closed
wants to merge 1 commit into from

Conversation

JuganD
Copy link

@JuganD JuganD commented Nov 28, 2019

"navigator.getUserMedia" is now depricated and is replaced by "navigator.mediaDevices.getUserMedia". The video eventListener for "play" fires up too early on low-end machines, before the video is fully loaded, which causes errors to pop up from the Face API and terminates the script (tested on Debian [Firefox] and Windows [Chrome, Firefox]). Replaced by "playing" event, which fires up when the media has enough data to start playing.

@WebDevSimplified
Copy link
Owner

These are amazing changes. I am glad you fixed the bug for low-end devices and also fixed the deprecated getUserMedia function. I cannot merge this code, though, since it is different than the code from the video and I like the code from my video to exactly match the code from the video. I do think this is something that would be great to add to a README, so I just copied this code into the README for others to see and use.

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

Successfully merging this pull request may close these issues.

2 participants