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.89k stars 1.51k forks source link

能加个自定义类型? #547

Open wyulang opened 1 year ago

wyulang commented 1 year ago

if (this.config.custom) { if (this.config.cluster) { Logger.log('NodeFissionServer does not work in cluster mode'); } else { this.nfs = new NodeFissionServer(this.config); this.nfs.run(); } }

如上 this.config.custom 里面参数由用户定义 ...., https: { port: 8443, key:'./privatekey.pem', cert:'./certificate.pem', }, custom:{ parameter:[...] }

this.ffmpeg_exec = spawn(this.conf.ffmpeg, parameter);