MagicFun1241 / streamer

Streaming library

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Streamer

Simple streaming library based on FFMPEG.

Install

npm i @magicfun1241/streamer --save

Examples

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.

License

MIT

About

Streaming library

License:MIT License


Languages

Language:TypeScript 100.0%