I get the warning that a function will be deprecated in Chrome future release.
It\'s this script:
navigator.getUserMedia = navigator.getUserMedia ||
If you are using Chrome you can use:
video.srcObject = stream;
instead of:
this.srcObject = stream;