Angularjs directive to access the webcam