Spaces:
Runtime error
Runtime error
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(); |