Mikalai

Comments

  • I think I was wrong regarding blocking play(). Example here proofs that it is not blocking: https://docs.snap.com/camera-kit/guides/tutorials/web-tutorials/camera-kit-web-for-beginners#4-putting-it-all-together I wonder maybe your component is re-mounted multiple times due to React business? When I try your component as a…
  • Try to move "setSession(newSession)" line somewhere before "await newSession.play()". For example you can store the session right after "createSession()" call. Another approach if you want to keep the order of calls is to never await "newSession.play()". A promise that is returned by a first call to "session.play()" is…
  • @Marcos_Santos Yes, that is doable through Remote API: https://docs.snap.com/camera-kit/guides/web-customization/remote-api#launch-data (don't be confused with the name, it can be used for local communications as well, but your custom Remote API spec has to be registered)
  • Hey @BastienSarolea You didn't mention it, so I'm curious: are you attempting to use the CatFacts lens or something else? The Remote API feature functions with lenses that are compatible with it.
  • Hey @Thor , were you able to solve the issue? Thanks for pointing out about the link, yeah I mistakenly shared a mobile SDK link, while the correct link is: https://docs.snap.com/camera-kit/guides/web-customization/remote-api We will update the sample page to point to the correct one. I'll follow up with the Lens Studio…
  • Hi @Thor, You are right the a Remote API endpoint has to be predefined and the service has to imported into the lens project in order to be used. The sample page @JacekC shared has a link to a doc page: https://docs.snap.com/camera-kit/guides/tutorials/mobile-tutorials/communicating-between-lenses-and-app It explain what…