livestream-studio

0.19.3 • Public • Published

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)

Package Sidebar

Install

npm i livestream-studio

Weekly Downloads

0

Version

0.19.3

License

ISC

Unpacked Size

18 kB

Total Files

6

Last publish

Collaborators

  • jwetzell