1.0.1 • Published 5 years ago

wtv-mediaserver-api v1.0.1

Weekly downloads
3
License
ISC
Repository
-
Last release
5 years ago

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