Fix stream url to match doc, make sure port is int

This commit is contained in:
Timo Wagner committed 2024-05-04 23:41:33 +02:00
1 parent 250b31a7a2
commit 1d2b29417c
1 file changed
+1 -1
+1 -1
View File
@@ -134,7 +134,7 @@ export default class admin {
serverOptions.loop = false;
// changed next line from http:// to ws://, to reduce stream lag
serverOptions.streamSource = "http://" + config.serverHost + ":" + (config.serverListenPort + 1) + "//" + config.streamKey + ".flv";
serverOptions.streamSource = "http://" + config.serverHost + ":" + (parseInt(config.serverListenPort) + 1) + "/live/" + config.streamKey + ".flv";
serverOptions.isStreaming = true;
cli.success("start stream");
} else {