Atualli commited on
Commit
e033c2f
1 Parent(s): f9fe5c9

Create app.js

Browse files
Files changed (1) hide show
  1. app.js +18 -0
app.js ADDED
@@ -0,0 +1,18 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ const NodeMediaServer = require('node-media-server');
2
+
3
+ const config = {
4
+ rtmp: {
5
+ port: 1935,
6
+ chunk_size: 60000,
7
+ gop_cache: true,
8
+ ping: 30,
9
+ ping_timeout: 60
10
+ },
11
+ http: {
12
+ port: 8000,
13
+ allow_origin: '*'
14
+ }
15
+ };
16
+
17
+ var nms = new NodeMediaServer(config)
18
+ nms.run();