From 41c983d74f3c0fb0c062184ea8cf96d6310896a7 Mon Sep 17 00:00:00 2001 From: eMUQI Date: Sun, 8 Nov 2020 17:47:54 +0800 Subject: [PATCH] Update helpers.js fix the bug that Thumbnail won't show when change rtmp_server.http.port --- server/helpers/helpers.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/helpers/helpers.js b/server/helpers/helpers.js index 1f0e831..fbac42d 100644 --- a/server/helpers/helpers.js +++ b/server/helpers/helpers.js @@ -5,7 +5,7 @@ const spawn = require('child_process').spawn, const generateStreamThumbnail = (stream_key) => { const args = [ '-y', - '-i', 'http://127.0.0.1:8888/live/'+stream_key+'/index.m3u8', + '-i', 'http://127.0.0.1:'+config.rtmp_server.http.port+'/live/'+stream_key+'/index.m3u8', '-ss', '00:00:01', '-vframes', '1', '-vf', 'scale=-2:300',