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:CameraTag.observe(YOUR_BOOTH_ID, "initialized", function(){ myBooth = CameraTag.photobooths["YOUR_BOOTH_ID"]; })
Once you have the instance calling methods is as simple as
myBooth.connect();