File size: 286 Bytes
e033c2f
 
 
 
4a65766
e033c2f
 
 
 
 
 
4a65766
e033c2f
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
const NodeMediaServer = require('node-media-server');

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

var nms = new NodeMediaServer(config)
nms.run();