npm.io
0.0.16 • Published 4 years ago

oseg

Licence
MIT
Version
0.0.16
Deps
5
Size
1006 kB
Vulns
4
Weekly
0

OSEG Rendering Library

This is a rendering engine for live broadcast
The main purpose of this library is to serve as the core rendering element for SeasonCast Studio and other SeasonCast products https://github.com/seasoncast/SeasonCast-Studio

️ Features

  • Takes in inputs and outputs of mutiple video & graphic feeds
  • Outputs a master video feed with rendered graphics

Getting Started

yarn install oseg
Usage
  1. Get your API token from https://seasoncast.com API endpoint /v2/broadcaster/login : based on these docs here

  2. Get started by creating a new OSEG instance:

import OSEG from 'oseg';

const apiToken = 'YOUR_API_TOKEN'; 

const oseg = new OSEG(1920,1080, apiToken);

oseg.setupCanvas(canvas); // canvas is a HTMLCanvasElement that will display the output