Skip to main content

From Remote URL

VideoEditor SDK supports loading video files from a remote URL, this can be a resource hosted by a video hosting provider such as Vimeo or Wistia or your own servers.

Download the remote video#

Although you can pass a URL directly to the editor, we strongly recommend that you manage downloading the remote resource yourself. This allows for more control over where and how the download task is being executed and avoids potential problems around UI locking.

Hence we download the video using the expo-file-system module before loading it into the editor.

Open the editor#

When the download is finished we load the local video URL into the editor and open it. Once the video has been exported, we handle the result and possible occurring errors.

Handle user interaction#

For this example, we are using Recoil and Recoil Nexus state management to disable user interaction while the download task is executing. In production, you might want to indicate download progress here. When the download has finished, we can reenable user interaction and dismiss the progress indicator.