openvidu-server: recording layout URL fix

pull/173/head
pabloFuente 2018-12-12 14:54:48 +01:00
parent 8aa08853ef
commit 05a6e8ea10
1 changed files with 4 additions and 2 deletions

View File

@ -531,8 +531,10 @@ public class ComposedRecordingService {
if (RecordingLayout.CUSTOM.equals(recording.getRecordingLayout())) {
layout = recording.getCustomLayout();
layout = layout.startsWith("/") ? layout.substring(1) : layout;
layout = layout.endsWith("/") ? layout.substring(0, layout.length() - 1) : layout;
if (!layout.isEmpty()) {
layout = layout.startsWith("/") ? layout : ("/" + layout);
layout = layout.endsWith("/") ? layout.substring(0, layout.length() - 1) : layout;
}
layout += "/index.html";
finalUrl = "https://OPENVIDUAPP:" + secret + "@" + location + "/layouts/custom" + layout + "?sessionId="
+ shortSessionId + "&secret=" + secret;