Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

So, let's now take a look on how to enable the video uploading on your VideoRecord component.

Video uploading with out of the box VideoRecord component

If you have just dragged and dropped the VideoRecord component in one of your pages, enabling the upload of existing videos is just one click away. Go back into the Lightning App / Community Builder, edit the page where your recording functionality is and tick the "Allow Video Upload" checkbox. Save the page and now you can start uploading your videos.

Video uploading with a VideoRecord component wrapper

If you have instead wrapped the VideoRecord default component with a Lightning Action or, more broadly speaking, with your own Lightning Component, you can achieve exactly the same video uploading capabilities just add the same configuration but via a new line of code. In the controller of your component, just add what is shown in line 12 of the code snippet below:

...

Save the component and reload the page, your configuration now supports video uploading.


Supported Formats

Supported file formats for uploading video files are: mp4, mpg, avi, mov, mkv, wmv, ogv, webm, flv


Conclusion & Next Steps

We have now seen how easy it is to enable video uploading in NativeVideo, allowing you to keep control on who can see the video in exactly the same way as described for the video recording.
In the next chapter of this advanced section we will be looking at the end to end process that each video goes through and how to inject custom behavior at each stage. If this sounds interesting, jump here.