BiFace_Server_Config_API/node_modules/node-rtsp-stream/test.js
2020-05-22 14:53:57 +07:00

11 lines
390 B
JavaScript

Stream = require('./index')
stream = new Stream({
name: 'name',
streamUrl: 'rtsp://wowzaec2demo.streamlock.net/vod/mp4:BigBuckBunny_115k.mov',
wsPort: 9999,
ffmpegOptions: { // options ffmpeg flags
'-stats': '', // an option with no neccessary value uses a blank string
'-r': '30', // options with required values specify the value after the key
'-s': '160x120',
}
})