Merge branch 'SubstreamFix' into 'dev'
Additional fixes for substream. See merge request Shinobi-Systems/Shinobi!518master
commit
cdf1f6f79a
|
@ -195,7 +195,7 @@ module.exports = (s,config,lang) => {
|
|||
if(channelStreamDirectory !== e.sdir){
|
||||
if (fs.existsSync(channelStreamDirectory)) {
|
||||
try {
|
||||
fs.rmdirSync(channelStreamDirectory, { recursive: true, force: true })
|
||||
fs.rmSync(channelStreamDirectory, { recursive: true, force: true })
|
||||
}catch(err){
|
||||
// s.debugLog(err)
|
||||
}
|
||||
|
@ -255,7 +255,7 @@ module.exports = (s,config,lang) => {
|
|||
}
|
||||
if(!videoCodecisCopy || outputRequiresEncoding){
|
||||
if(videoWidth && videoHeight && !e.details.hwaccel_format) streamFlags.push(`-s ${videoWidth}x${videoHeight}`)
|
||||
if(videoFps && streamType === 'mjpeg' || streamType === 'b64'){
|
||||
if(videoFps && streamType === 'mjpeg' || videoFps && streamType === 'b64'){
|
||||
streamFilters.push(`fps=${videoFps}`)
|
||||
}
|
||||
}
|
||||
|
|
|
@ -605,9 +605,11 @@ async function importIntoMonitorEditor(options){
|
|||
var monitorGroups = monitorDetails.groups ? safeJsonParse(monitorDetails.groups) : []
|
||||
monitorTags = monitorTags.concat(monitorGroups)
|
||||
loadMonitorGroupTriggerList()
|
||||
$.get(getApiPrefix()+'/hls/'+monitorConfig.ke+'/'+monitorConfig.mid+'/detectorStream.m3u8',function(data){
|
||||
$('#monEditBufferPreview').html(data)
|
||||
})
|
||||
if (monitorConfig.ke && monitorConfig.mid) {
|
||||
$.get(getApiPrefix()+'/hls/'+monitorConfig.ke+'/'+monitorConfig.mid+'/detectorStream.m3u8',function(data){
|
||||
$('#monEditBufferPreview').html(data)
|
||||
})
|
||||
}
|
||||
tagsInput.tagsinput('removeAll');
|
||||
monitorTags.forEach((tag) => {
|
||||
tagsInput.tagsinput('add',tag);
|
||||
|
|
Loading…
Reference in New Issue