stream-closer

1.0.9 • Public • Published

Stream closer

A CLI tool for stopping RS streams

Dependencies

  • Install ffmpeg and have it available on the command line -- brew install ffmpeg

Install

npm install -g stream-closer  

Usage

You'll need your RS api token to use this tool. You can access it here: https://fot.reactive.live/admin/users/apitoken/

Close all streams:

stream-closer --token :your-rs-api-token

Close streams with a give tag:

stream-closer --token :your-rs-api-token -tag :your-tag

You can group your streams by giving them a tag. This, amoung other uses, will allow you to only close a targeted subset of streams. You can tag your streams at creation with a request like:

fetch(`https://fot.reactive.live/api/v1/streams/`, {
  method: "POST",
  headers: {
    "Content-Type": "application/json",
    Authorization: "Token :your-token",
  },
  body: JSON.stringify({ tag: "your-tag" }),
});

Readme

Keywords

none

Package Sidebar

Install

npm i stream-closer

Weekly Downloads

10

Version

1.0.9

License

MIT

Unpacked Size

431 kB

Total Files

7

Last publish

Collaborators

  • agconti