UNPKG

@mediafish/rtmp-server

Version:

A server that receives an RTMP live stream and populates a readable object stream of the published audio, video, and data messages

17 lines (13 loc) 346 B
import {Readable} from 'node:stream'; // import debug from 'debug'; // const print = debug('rtmp-server'); export default class RTMPStream extends Readable { constructor(name, streamId) { super({objectMode: true}); this.name = name; this.streamId = streamId; } _read() { // Data will be pushed by ConnectionManager } }