mdn / samples-server

MDN samples server; used for samples that can't be hosted in-place on MDN, plus back-end server-side code for samples that need it.
https://developer.mozilla.org/
Creative Commons Zero v1.0 Universal
958 stars 927 forks source link

Updated to use navigator.mediaDevices.getUserMedia and srcObject. #40

Open jan-ivar opened 7 years ago

jan-ivar commented 7 years ago

Updated to avoid outdated patterns we're trying to deprecate.

jan-ivar commented 7 years ago

@a2sheppy PTAL.

a2sheppy commented 7 years ago

At this point, I'm kind of inclined to just change the code to assume that WebRTC is not prefixed and is more or less up-to-date, which our other samples generally do now, instead of having all the code to work around the variations. Opinions?