angular-qr-scanner
angular-qr-scanner copied to clipboard
$window.localMediaStream.stop(); not available on Chrome
This don't work anymore in Google Chrome https://developers.google.com/web/updates/2015/07/mediastream-deprecations?hl=en#stop-ended-and-active $window.localMediaStream.stop(); and needs to be replaced by this : (which works one Firefox & Chrome) $window.localMediaStream.getTracks()[0].stop();
:+1:
I also replaced localMediaStream with MediaStreamTrack.