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',