join us on Discord for support, updates, and all things Snap AR! See you there!
Camera kit Start recording
Hi there.
i was wandering by using Camera Kit web SDK if i can enable start recording feature.
is there a simple code or something you can help me with ?
Thank you.
Answers
-
Thanks for posting on the forum! Created a ticket (4797) for our eng team to chime in when they get a chance.
0 -
Hi @كنز | Treasure👑! Camera Kit renders to an
HTMLCanvasElement
which can be recorded through a couple different methods. Unfortunately, we don't have any documentation on this at the moment but plan to have some sample material available in the near future. In the meantime, I will refer you to theMediaRecorder
API docs; which is what would ultimately be used to achieve this desired functionality: https://developer.mozilla.org/en-US/docs/Web/API/MediaRecorder.If you have any additional questions, please feel free to reach out!
0 -
Hi @Michael Mase Thank you so much,
The lenses we are working with are structured to run with “ on start record “ inside the lens
If im just recording the html frame the lens will never start the functions inside it.
Is there an actual start recording code that run the same way when you click on record button on snap?
Thank you
Cheers.0 -
Excellent question! At this time,
ScriptScene
methods likeisRecording
are not supported in the Web SDK. The best approach to something like this may be to trigger a click event on the canvas element when the user begins recording. In your Lens, you would initiate the sequence you wish to record when the user taps/clicks. I hope this helps!0