File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed
app/src/main/java/io/opentakserver/opentakicu Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -1019,12 +1019,16 @@ public void startStream() {
1019
1019
1020
1020
// Support for MediaMTX's way of doing RTMP authentication
1021
1021
if (protocol .startsWith ("rtmp" ) && !username .equals (Preferences .STREAM_USERNAME_DEFAULT ) && !password .equals (Preferences .STREAM_PASSWORD_DEFAULT )) {
1022
- url = url .concat ("/" ).concat (path ).concat ("?user=" ).concat (username ).concat ("&pass=" ).concat (password );
1022
+ url = url .concat ("/" ).concat (path );
1023
+ if (username != null && !username .isEmpty ())
1024
+ url = url .concat ("?user=" ).concat (username ).concat ("&pass=" ).concat (password );
1023
1025
}
1024
1026
else if (!protocol .equals ("udp" ) && !protocol .equals ("srt" ))
1025
1027
url = url .concat ("/" ).concat (path );
1026
1028
else if (protocol .equals ("srt" )) {
1027
- url += "/publish:" + path ;
1029
+ url += "?streamid=publish:" + path ;
1030
+ if (username != null && !username .isEmpty ())
1031
+ url += ":" + username + ":" + password ;
1028
1032
}
1029
1033
// UDP Multicast
1030
1034
else {
You can’t perform that action at this time.
0 commit comments