Record Video - Send to External API

Hi,
I have 2 questions regarding the Record Video function:

  1. I want to record a video and send the output to external API for processing and storing instead of storing it locally, how do I do this?
  2. How do I preview the recorded video prior to sending it to external data resource (Step 1)?

Thanks,

  1. Set it to a variable
  2. view the variable in a video player or web browser
  3. Button to save the variable to external API