rtsp: unrevert commits

This commit is contained in:
bordun 2018-03-26 23:50:02 +02:00
parent d14aeb9e8c
commit 87c75bda74
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,