JSPM

livestream-studio

0.19.3
  • ESM via JSPM
  • ES Module Entrypoint
  • Export Map
  • Keywords
  • License
  • Repository URL
  • TypeScript Types
  • README
  • Created
  • Published
  • Downloads 1
  • Score
    100M100P100Q25052F
  • License ISC

Library for interacting with an instance of Livestream Studio

Package Exports

  • livestream-studio
  • livestream-studio/index.js

This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (livestream-studio) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.

Readme

Exploration in interacting with Livestream Studio

Install

  • npm install --save livestream-studio

Usage

const { Studio } = require('livestream-studio')

const studio = new Studio('127.0.0.1') // IP of Livestream Studio

studio.on('connect',()=>{
    console.log('studio has connected')
})

studio.on('update',(type)=>{
    // type is the type of packet that caused the update
    console.log('studio update received')
    console.log(studio.toJSON())
})

// Send the cut command to the studio instance every 10 seconds
setInterval(()=>{
    studio.cut();
},10000)