join us on Discord for support, updates, and all things Snap AR! See you there!
Camera kit web: Photo capture/record saving help!
I have a two part question:
How should we go about programming in the "photo capture" and "video recording" features on the web browser version of Camera Kit? We ideally would like the user to be able to take a photo or video they can save to their camera roll.
Once the media saves to their device, we would like to give them the option to share to their favorite social media platform. What's the best way to implement this?
Comments
-
Hi @Paigepiskin! Here is a guide on recording/downloading video of your Camera Kit session. https://docs.snap.com/camera-kit/quick-start/integrate-sdk/integrate-sdk-web/guides/recording-video
For capturing photos, you should be able to get a PNG by calling
canvas.toDataURL()
.As for serving these assets to social media platforms, this can be challenging (often not possible) to implement from a web app. The simplest way to do this would be to allow the user to simply download the photo and then share it at their leisure on the various platforms.
0 -
Thank you! When saving from camera kit is there a way to save to camera roll?
1 -
Also we’re a bit confused with saving format, how do we save/film in MP4?
1