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