apivideo / privatedelegatedtoken

video upload demo - uses delegated tokens (public api key) for video upload with just HTML and JavaScript. From api.video (https://api.video)

Home Page:https://privatelyupload.a.video/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

badge

badge

badge

api.video is the video infrastructure for product builders. Lightning fast video APIs for integrating, scaling, and managing on-demand & low latency live streaming features in your app.

Private Delegated tokens & Delegated token adding options to video upload

NodeJS app to upload videos to api.video

Installation

  1. Clone github repo
  2. add environmental variables
  3. install node dependancies
  4. Run with 'node src/index.js'

What the app does

When you add a video, there is a request to api.video to create a video. This creates the video 'container' with all the options selected in the form. A delegated token (public upload key) is also created, with a 90s expiration.

The video container id (videoId) and the token are sent back to the broswer, and the upload begins. The video is split into 1 MB segments. As long as the first segment uplads in 90s the token TTL), the video will successfully upload.

Live demo

http://privatelyupload.a.video/

About

video upload demo - uses delegated tokens (public api key) for video upload with just HTML and JavaScript. From api.video (https://api.video)

https://privatelyupload.a.video/

License:MIT License


Languages

Language:HTML 50.1%Language:JavaScript 30.6%Language:CSS 19.3%