beije / motion-detection-in-javascript

A small project where a webcam is used to detect motion. Written fully in Javascript without any third-party libs.
MIT License
100 stars 36 forks source link

Update WebCamCapture.js #7

Closed VibroAxe closed 5 years ago

VibroAxe commented 5 years ago

Replaced deprecated createObjectURL with srcObject with fallback

VibroAxe commented 5 years ago

Hey @beije I used this as the basis for some motion capture I did but recently it stopped working, createObjectURL is now deprecated in chrome in favour of .srcObject, this PR fixes that

beije commented 5 years ago

@VibroAxe thanks!