PhotoBooth JS Methods
You can control your <photobooth> using our Javascript API. Below is a full list of the available methods.How do I call methods on a PhotoBooth instance?
connect
disconnect
setMetadata
takePicture
select_filter
getPhoto
publish
selectDevices
How do I call methods on a PhotoBooth instance?
You can get your camera's JS instance by accessing it in the CameraTag photobooths array once the PhotoBooth has initialized:CameraTagPhotobooth.observe("myBooth1", "initialized", function(){ alert("initialized"); this.connect(); })
Once you have the instance calling methods is as simple as
myBooth.connect();