add m3u8 import capability to multimon+

- make it compatible with older buffer types
pushover
Moe 2019-09-23 15:08:06 -07:00
parent 8980a65805
commit 4a1789ae89
1 changed files with 4 additions and 3 deletions

View File

@ -125,7 +125,6 @@ $.multimon.e.find('.import_config').click(function(){
var link = getUrlPieces(url)
var newMon = $.aM.generateDefaultMonitorSettings()
newMon.details = JSON.parse(newMon.details)
newMon.details.stream_type = 'mp4'
newMon.mid = 'HLS' + name.toLowerCase()
newMon.name = name
newMon.port = link.port
@ -137,9 +136,11 @@ $.multimon.e.find('.import_config').click(function(){
newMon.details.auto_host = url
newMon.details.stream_quality = '1'
newMon.details.stream_fps = ''
newMon.details.stream_vcodec = 'copy'
newMon.details.stream_vcodec = 'libx264'
newMon.details.stream_acodec = 'aac'
newMon.type = 'hls'
newMon.details.stream_type = 'hls'
newMon.details.hls_time = '10'
newMon.type = 'mp4'
newMon.details = JSON.stringify(newMon.details)
postMonitor(newMon)
})