Skip to content
This repository was archived by the owner on Apr 27, 2021. It is now read-only.

Conversation

dandv
Copy link

@dandv dandv commented Sep 17, 2016

Per https://developer.mozilla.org/en-US/docs/Web/API/Navigator/getUserMedia, we should advocate using navigator.mediaDevices.getUserMedia instead of navigator.getUserMedia.

startbutton = document.getElementById('startbutton');

navigator.getMedia = ( navigator.getUserMedia ||
navigator.getMedia = ( navigator.mediaDevices.getUserMedia ||
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

They're not arg compatible unfortunately. navigator.mediaDevices.getUserMedia returns a promise instead of taking callbacks.

See #40 instead.

@a2sheppy
Copy link
Contributor

a2sheppy commented Jun 5, 2017

jan-ivar is right. Closing this and will get the other PR handled now.

@a2sheppy a2sheppy closed this Jun 5, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants