bcabanes / ng-camera

AngularJS directive for capturing images form your computer's camera.
55 stars 33 forks source link

updating directive - added callback snapshotCallback to directive, at… #10

Closed adanton01 closed 4 months ago

adanton01 commented 8 years ago

added new attribute called snapshot-callback to directive to trigger when snapshot data is available some function can be passed and will get the the data_uri passed in to it if $snapshot_data is used.

<ng-camera ....... snapshot-callback = "somefunction($snapshot_data)">

----- $snapshot_data is the data_uri returned by Webcam.snap