image: add stream experimental property with server-side ffmpeg backend (#259)

This commit is contained in:
jean-emmanuel 2018-03-24 15:28:37 +01:00
parent e41024f5f4
commit dfdac01bf3
4 changed files with 56 additions and 1 deletions

View file

@ -56,6 +56,7 @@ var options = {
true : 'examples can\'t be listed if --load is set'
}
},
'video-streams':{type:'array',describe:'video stream urls (rtsp://)'},
'url-options':{type:'array',describe:'url options (opt=value pairs)',
check: (u, argv)=>{
return (!u || !argv.n) ?
@ -120,6 +121,7 @@ var makeDefaultConfig = function(argv){
sessionFile: argv.l || false,
newSession: argv.b || false,
customModule: argv.c || false,
videoStreams: argv['video-streams'] || [],
fullScreen: argv['fullscreen'] || false,
noGui: argv.n || false,
guiOnly: typeof argv.g == 'string' ? argv.g.length ? argv.g : true : false,