mirror of
https://github.com/SrIzan10/stream-rtmp.git
synced 2026-05-01 11:05:17 +00:00
18 lines
322 B
JavaScript
18 lines
322 B
JavaScript
const NodeMediaServer = require('node-media-server');
|
|
|
|
const config = {
|
|
rtmp: {
|
|
port: 1935,
|
|
chunk_size: 60000,
|
|
gop_cache: true,
|
|
ping: 30,
|
|
ping_timeout: 60
|
|
},
|
|
http: {
|
|
port: 8000,
|
|
allow_origin: '*'
|
|
}
|
|
};
|
|
|
|
var nms = new NodeMediaServer(config)
|
|
nms.run(); |