README
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