add RTSP Transport to monitorSnapShot command

merge-requests/117/head
Moe 2019-10-01 13:53:20 -07:00
parent b946588ee6
commit ccf90f67f8
1 changed files with 15 additions and 0 deletions

View File

@ -110,6 +110,21 @@ module.exports = function(s,config,lang){
var inputOptions = []
var streamDir = s.dir.streams + monitor.ke + '/' + monitor.mid + '/'
var url = options.url
switch(monitor.type){
case'h264':
switch(monitor.protocol){
case'rtsp':
if(
monitor.details.rtsp_transport
&& monitor.details.rtsp_transport !== ''
&& monitor.details.rtsp_transport !== 'no'
){
inputOptions.push('-rtsp_transport ' + monitor.details.rtsp_transport)
}
break;
}
break;
}
var runExtraction = function(){
try{
var snapBuffer = []