From 4a1789ae89a128988f31eec7732efc19ea4f15fe Mon Sep 17 00:00:00 2001 From: Moe Date: Mon, 23 Sep 2019 15:08:06 -0700 Subject: [PATCH] add m3u8 import capability to multimon+ - make it compatible with older buffer types --- web/libs/js/dash2.multimon.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/web/libs/js/dash2.multimon.js b/web/libs/js/dash2.multimon.js index 997d0b06..345b7b7a 100644 --- a/web/libs/js/dash2.multimon.js +++ b/web/libs/js/dash2.multimon.js @@ -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) })