#I need the lens to notify the web that something has been completed

7 messages · Page 1 of 1 (latest)

languid nimbus
#

Is there an easy way of doing this without involving the external API? I just wan to know when an animation has been completed and notify the web app that it's done

ashen flicker
#

You would need to use remote API feature to get any info/event out from the lens.

languid nimbus
ashen flicker
#

It is not web socket, so usually I will create a button in the lens, and use remote api to detect the button press on my front end.
But I think it is also possible to call the remote api every frame so you can simulate web socket.

languid nimbus
ashen flicker
#

This is the setup i have for my remote api. It detects a button press event from the lens to the front end. The host & provider name doesn't matter actually, as you can see in my screenshot. The only thing that matter are the Snap Kit app ID (or camera kit api token) and the end point name, which you will use in the lens.