Simple streaming library based on FFMPEG.
npm i @magicfun1241/streamer --save
Using TypeScript:
import { RtmpStream } from "@magicfun1241/streamer";
const stream = new RtmpStream({
input: "{URL_TO_MP4}",
output: "rtmp://live-waw.twitch.tv/app",
key: "{STREAM_KEY}"
});
stream.start();
It's supports ES5 too. Just change import to something like this:
const { RtmpStream } = require("@magicfun1241/streamer");
Other examples will be in /examples directory.
MIT