illuspas / Node-Media-Server

A Node.js implementation of RTMP/HTTP-FLV/WS-FLV/HLS/DASH/MP4 Media Server
https://www.npmjs.com/package/node-media-server
MIT License
5.9k stars 1.51k forks source link

Use custom RTMP server? #523

Open DLLDev opened 2 years ago

DLLDev commented 2 years ago

Is it possible to use a custom RTMP server instead of the build in?

ziiw commented 2 years ago

It looks like you can configure the RTMP server in the creation options. Isn't it what you are looking for?

DLLDev commented 2 years ago

maybe, if i dont get something right.

you means the config?

like:

const config = {
  rtmp: {
    port: 1935,
    chunk_size: 60000,
    gop_cache: true,
    ping: 30,
    ping_timeout: 60
  },
  http: {
    port: 8000,
    allow_origin: '*'
  }
};

because that would just start the internal RTMP server. i want that NMS do not run its own RTMP server. I want that NMS consumes an external one instead.