videosdk-live / videosdk-vod-react-api-example

This code sample demonstrates a Video SDK "Video On Demand API" using react js.

Home Page:https://docs.videosdk.live/docs/video-on-demand/intro

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Video SDK video on demand react api example

This code sample demonstrates Video SDK Video On Demand API using react.js.

  • Built for serverless video on demand experience.
  • Convert video from 240p to 4k.
  • 98% device support.
  • Low latecncy across the globe.
  • Built for scale
  • Adaptive video streaming

Features

  • Upload large video files
  • Get video metadata in milliseconds.
  • Instant video encoding from 240p to 4k
  • Support multiple file and compression formats
  • Generate HD thumbnail images from video files.
  • Get notified when encoding is finished.
  • protected video streaming
  • 360 video support
  • Embeded video players

Prerequisites

You must have the following installed:

  • Node.js
  • NPM

Getting started

  1. Run the authentication server Follow videosdk-rtc-nodejs-sdk-example to run authentication server.

  2. Clone the repo

    git clone https://github.com/videosdk-live/videosdk-vod-react-api-example.git
  3. Copy the .env.example file to .env file.

    cp .env.example .env
  4. Update the api server url in the .env file that points to the authentication server.

    REACT_APP_SERVER_API="http://localhost:9000"
    
  5. Install NPM packages

    npm install
  6. Run the app

    npm run start

For more information, visit official documentation

About

This code sample demonstrates a Video SDK "Video On Demand API" using react js.

https://docs.videosdk.live/docs/video-on-demand/intro


Languages

Language:JavaScript 68.9%Language:HTML 21.2%Language:CSS 8.7%Language:Shell 1.2%