1.0.0 • Published 1 year ago

living-as-one-decoder v1.0.0

Weekly downloads
2
License
ISC
Repository
github
Last release
1 year ago

Living As One Decoder

This library contains classes to control a Living As One decoder over the local network, using the Rosstalk protocol.
To control any encoders, see living-as-one-encoder.

graph LR
    E[Encoder] -- Internet --> S((Living As One Cloud))
    S -- Internet --> D
    
    IN[[Video source]] --> E
    D --> OUT[[Video output]]
    
    subgraph nodejs
      LAOE[living-as-one-encoder]
      LAOD[living-as-one-decoder]
    end
    LAOE -- Living As One API --> S
    LAOE -. controls .-> E
    LAOD -- RossTalk over Local Network --> D[Decoder]
    
    click LAOE "https://github.com/emptygalaxy/living-as-one-encoder" "living-as-one-encoder"
    click LAOD "https://github.com/emptygalaxy/living-as-one-decoder" "living-as-one-decoder"

Installation

Install living-as-one-decoder with npm

  npm install living-as-one-decoder

Features

  • Play the video on the decoder
  • Pause the video on the decoder

Usage/Examples

import {LivingAsOneDecoder} from 'living-as-one-decoder';

const decoderIP = '0.0.0.0';

const decoder = new LivingAsOneDecoder();
decoder.connect(decoderIP);

// pause after one second
setTimeout(() => {
  decoder.pause();
}, 1000);

// resume playing after two seconds
setTimeout(() => {
  decoder.play();
}, 2000);
graph LR
    D[Living As One Decoder] -- Local Network --> D[Decoder]