Camera JS Events
You can be notified when events occur in your <photobooth> using our Javascript API. Below is a full list of the available events.How do I observe camera events?
initialized
connecting
connected
disconnected
cameraError
photoTaken
filterSelected
publishing
uploadProgress
published
publishFailed
metadataError
How do I observe PhotoBooth events?
You can observe a PhotoBooth's events at any time (even before you create it) by using the PhotoBooth's id and the CameraTag.observe method. Here is an example observing the publish event from a PhotoBooth with the id 'MyBooth1':CameraTag.observe('MyBooth1', 'published', function(){ alert('this image has been published!') });