0.1.4 • Published 3 years ago

@viacast/playcast-client v0.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Library for controlling a Playcast Middleware instance

yarn add @viacast/playcast-client
npm i @viacast/playcast-client
// import { Playcast } from '@viacast/playcast-client';
const { Playcast } = require('@viacast/playcast-client');

const playcast = new Playcast({ host: 'localhost', port: 8383 });

playcast.connect().then(async () => {
  const r = await playcast.append(0, { filepath: '/media/sample.mp4' });
  if (r.success) {
    await playcast.play(0);
  }
});
0.1.4

3 years ago

0.1.3

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.1.0

3 years ago