@viacast/playcast-client
TypeScript icon, indicating that this package has built-in type declarations

0.1.4 • Public • Published

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);
  }
});

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 0.1.4
    0
    • latest

Version History

Package Sidebar

Install

npm i @viacast/playcast-client

Weekly Downloads

0

Version

0.1.4

License

MIT

Unpacked Size

24.4 kB

Total Files

12

Last publish

Collaborators

  • luckcfm
  • jablonski