wtv-mediaserver-api

1.0.1 • Public • Published

Media Server API

Use this module to talk to wTVision's Media Server version 3.x onward.

Instalation

npm i wtv-mediaserver-api

Usage

 const mediaServer = require('wtv-mediaserver-api')
 
 async function doStuff() {
   // Connects to localhost on the default port
   let status = await mediaServer.connect()
   // get Status Information on what's playing
   status = await mediaServer.getPositionAndLength()
   console.log(status)
   // adds a file from Media Server's root media folder
   await mediaServer.addFile('mediaFile.mxf')
   await mediaServer.play()
 }
 
 doStuff()

### Commands

  • connect
  • addFile
  • play
  • pause
  • stop
  • liveIn
  • liveOut
  • skipNext
  • getStatus
  • getPositionAndLength
  • moveTo
  • setDebug
  • disconnect

Package Sidebar

Install

npm i wtv-mediaserver-api

Weekly Downloads

3

Version

1.0.1

License

ISC

Unpacked Size

6.69 kB

Total Files

4

Last publish

Collaborators

  • alex.fraser