You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openmeetings.apache.org by so...@apache.org on 2012/04/24 09:23:23 UTC
svn commit: r1329576 -
/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java
Author: solomax
Date: Tue Apr 24 07:23:23 2012
New Revision: 1329576
URL: http://svn.apache.org/viewvc?rev=1329576&view=rev
Log:
OPENMEETINGS-191 correct scheme is used in jnlp file
Modified:
incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java
Modified: incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java
URL: http://svn.apache.org/viewvc/incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java?rev=1329576&r1=1329575&r2=1329576&view=diff
==============================================================================
--- incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java (original)
+++ incubator/openmeetings/trunk/singlewebapp/src/org/openmeetings/servlet/outputhandler/ScreenRequestHandler.java Tue Apr 24 07:23:23 2012
@@ -93,7 +93,6 @@ public class ScreenRequestHandler extend
HttpServletResponse httpServletResponse, Context ctx) {
try {
-
if (getSessionManagement() == null) {
return getVelocityView().getVelocityEngine().getTemplate(
"booting.vm");
@@ -150,6 +149,9 @@ public class ScreenRequestHandler extend
throw new Exception("httpRootKey is empty could not start sharer");
}
+ String baseURL = httpServletRequest.getScheme() + "://" + rtmphostlocal + ":" + red5httpport
+ + httpRootKey;
+
// make a complete name out of domain(organisation) + roomname
String roomName = domain + "_" + room;
// trim whitespaces cause it is a directory name
@@ -166,13 +168,11 @@ public class ScreenRequestHandler extend
log.debug("httpRootKey " + httpRootKey);
- String codebase = "http://" + rtmphostlocal + ":" + red5httpport
- + httpRootKey + "screen";
+ String codebase = baseURL + "screen";
ctx.put("codebase", codebase);
- String httpSharerURL = "http://" + rtmphostlocal + ":"
- + red5httpport + httpRootKey + "ScreenServlet";
+ String httpSharerURL = baseURL + "ScreenServlet";
ctx.put("webAppRootKey", httpRootKey);
ctx.put("httpSharerURL", httpSharerURL);
@@ -294,14 +294,12 @@ public class ScreenRequestHandler extend
log.debug("RTMP Sharer labels :: " + label_sharer);
- codebase = "http://" + rtmphostlocal + ":" + red5httpport
- + httpRootKey + "red5-screenshare";
+ codebase = baseURL + "red5-screenshare";
ConnectionType conType = ConnectionType
.valueOf(httpServletRequest
.getParameter("connectionType"));
- // FIXME http:// need to be removed
String startUpClass;
switch (conType) {
case rtmp: