To generate a slideshow, we first have to start by creating a slideshow template. There are a number of slideshow video templates available that are pre-made and can be used out-of-the-box.
However, it is also possible to create your own slideshow designs using the online video editor. This editor provides a drag-and-drop environment where you can make your own designs.
Once you have a video template, you can then use it from your Node.js applications. To do this, install the Creatomate Node.js SDK that can be found on NPM. Then from your code, import the library and set your API key for communicating with the video servers.
Then, it is simply a matter of calling the render method and refering to your video template from step 1. By specifying any modifications, we can create a slideshow based on that template. In this example, we are replacing the pictures in the slideshow template with our own ones. After the function completes, we'll get back a MP4.
As you can see, by utilizing Node.js and a video template, we generated a single slideshow video. You can imagine that generating hundreds of slideshow videos in bulk by calling the function each time we want to create a new video.
As the process of generating the video slideshows is running on Creatomate's servers, there no need to scale up your own hardware, as call to render simply spins up a video server in the cloud to render our slideshow at scale.