Skip to content

This is a demo application showing how a dynamic video can be previewed in the browser using the Creatomate JavaScript Video SDK.

License

Notifications You must be signed in to change notification settings

casperkloppenburg/video-preview-demo

 
 

Repository files navigation

Video Preview Demo

Add video rendering to your web apps! Seamlessly integrate our video renderer into your software and provide your users with video editing functionality – right in the browser.

This is a demo application showing how a dynamic video can be previewed in the browser using the JavaScript Video SDK. This code can be used as a basis for creating your own video editor applications using Creatomate's API.

Usage

Running this demo application

This demo uses a video template from your account. The example code demonstrates a few features that require a specific template, so be sure to follow the instructions carefully:

  1. Create a free account here.
  2. Go to your project settings, and copy your API Key and Video Player Token under Programmatic Access:

    Screenshot

  3. In your dashboard, go to My Templates, click New, go to the Storytelling category, and choose the "Image Slideshow w/ Intro and Outro" template, then click Create Template:

    Screenshot

  4. From the address bar, copy the ID of the newly created template:

    Screenshot

  5. Create a new file called .env.local in the root of the project, providing the API Key, Video Player Token, and Template ID from the previous steps:
CREATOMATE_API_KEY=...
NEXT_PUBLIC_VIDEO_PLAYER_TOKEN=...
NEXT_PUBLIC_TEMPLATE_ID=...
  1. Install all NPM dependencies using the following command:
npm install
  1. The demo can then be run using:
npm run dev
  1. Now visit the URL that is displayed in your console, which is by default: http://localhost:3000

Using this code in your own projects

The JavaScript SDK consists of only a few source files located in the renderer folder. In order to integrate the SDK into your own web application, simply copy the files from that folder into your project.

Issues & Comments

Feel free to contact us if you encounter any issues with this demo or Creatomate API at support@creatomate.com.

License

This demo is licensed under the MIT license. Please refer to the LICENSE for more information.

About

This is a demo application showing how a dynamic video can be previewed in the browser using the Creatomate JavaScript Video SDK.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 97.8%
  • CSS 1.7%
  • JavaScript 0.5%