Hi @Ofer Elyakim , I believe that this sample would be useful for you. It details how you can accomplish this. If you're still having issues integrating it with your existing code, please share your code so I can look at it. Let me know if you have any questions!
If this answer helps you please mark "Accept Answer" so other users can reference it.
Thank you,
James