Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
Openfire
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Openfire
Commits
c1024520
Commit
c1024520
authored
Oct 30, 2014
by
Dele Olajide
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Jitsi Videobridge 1.3.2
Added support for clustering
parent
705864ad
Changes
6
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
92 additions
and
26 deletions
+92
-26
changelog.html
src/plugins/jitsivideobridge/changelog.html
+6
-0
plugin.xml
src/plugins/jitsivideobridge/plugin.xml
+2
-2
Config.class
...B-INF/classes/org/jitsi/videobridge/openfire/Config.class
+0
-0
Config.java
...ridge/src/java/org/jitsi/videobridge/openfire/Config.java
+1
-1
PluginImpl.java
...e/src/java/org/jitsi/videobridge/openfire/PluginImpl.java
+82
-22
jitsi-videobridge.jsp
src/plugins/jitsivideobridge/src/web/jitsi-videobridge.jsp
+1
-1
No files found.
src/plugins/jitsivideobridge/changelog.html
View file @
c1024520
...
...
@@ -43,6 +43,12 @@
Jitsi Video Bridge Plugin Changelog
</h1>
<p><b>
1.3.2
</b>
-- Oct 30th, 2014
</p>
<ul>
<li>
Added support for clustering
</li>
</ul>
<p><b>
1.3.1
</b>
-- May 10th, 2014
</p>
<ul>
...
...
src/plugins/jitsivideobridge/plugin.xml
View file @
c1024520
...
...
@@ -4,9 +4,9 @@
<class>
org.jitsi.videobridge.openfire.PluginImpl
</class>
<description>
Integrates Jitsi Video Bridge into Openfire.
</description>
<licenseType>
LGPL
</licenseType>
<minServerVersion>
3.
9.2
</minServerVersion>
<minServerVersion>
3.
10.0
</minServerVersion>
<name>
Jitsi Video Bridge
</name>
<version>
1.3.
1
</version>
<version>
1.3.
2
</version>
<adminconsole>
<tab
id=
"tab-server"
>
...
...
src/plugins/jitsivideobridge/src/WEB-INF/classes/org/jitsi/videobridge/openfire/Config.class
View file @
c1024520
No preview for this file type
src/plugins/jitsivideobridge/src/java/org/jitsi/videobridge/openfire/Config.java
View file @
c1024520
...
...
@@ -45,7 +45,7 @@ public class Config extends HttpServlet
ServletOutputStream
out
=
response
.
getOutputStream
();
String
iceServers
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.iceservers"
,
""
);
String
resolution
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.resolution"
,
"
72
0"
);
String
resolution
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.resolution"
,
"
36
0"
);
String
audioBandwidth
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.audio.bandwidth"
,
"64"
);
String
videoBandwidth
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.video.bandwidth"
,
"512"
);
String
useNicks
=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.usenicks"
,
"false"
);
...
...
src/plugins/jitsivideobridge/src/java/org/jitsi/videobridge/openfire/PluginImpl.java
View file @
c1024520
...
...
@@ -24,6 +24,8 @@ import org.jivesoftware.openfire.container.*;
import
org.jivesoftware.openfire.muc.*
;
import
org.jivesoftware.util.*
;
import
org.jivesoftware.openfire.http.HttpBindManager
;
import
org.jivesoftware.openfire.cluster.ClusterEventListener
;
import
org.jivesoftware.openfire.cluster.ClusterManager
;
import
org.jivesoftware.openfire.XMPPServer
;
import
org.jivesoftware.openfire.handler.IQHandler
;
import
org.jivesoftware.openfire.IQHandlerInfo
;
...
...
@@ -83,7 +85,7 @@ import org.ifsoft.rtp.*;
* @author Lyubomir Marinov
* @author Damian Minkov
*/
public
class
PluginImpl
implements
Plugin
,
PropertyEventListener
public
class
PluginImpl
implements
Plugin
,
PropertyEventListener
,
ClusterEventListener
{
private
static
ConcurrentHashMap
<
String
,
FocusAgent
>
sessions
;
/**
...
...
@@ -216,9 +218,50 @@ public class PluginImpl implements Plugin, PropertyEventListener
*/
private
ExecutorService
executorService
;
private
File
pluginDirectory
;
/**
* Initializes this <tt>Plugin</tt>.
*
* @param manager the <tt>PluginManager</tt> which loads and manages this
* <tt>Plugin</tt>
* @param pluginDirectory the directory into which this <tt>Plugin</tt> is
* located
* @see Plugin#initializePlugin(PluginManager, File)
*/
public
void
initializePlugin
(
PluginManager
manager
,
File
pluginDirectory
)
{
this
.
pluginDirectory
=
pluginDirectory
;
boolean
nodejs
=
XMPPServer
.
getInstance
().
getPluginManager
().
getPlugin
(
"nodejs"
)
!=
null
;
if
(
nodejs
)
{
Log
.
info
(
"Jitsi Videobridge - Found NodeJs Plugin. Starting Etherpad"
);
JiveGlobals
.
setProperty
(
"js.jitsivideobridge.etherpad.path"
,
pluginDirectory
.
getAbsolutePath
()
+
File
.
separator
+
"apps"
+
File
.
separator
+
"ofmeet"
);
JiveGlobals
.
setProperty
(
"js.jitsivideobridge.etherpad"
,
"node_modules/ep_etherpad-lite/node/server.js"
);
}
startComponent
();
ClusterManager
.
addListener
(
this
);
}
public
void
destroyPlugin
()
{
Log
.
info
(
"Jitsi Videobridge - destroyPlugin"
);
stopComponent
();
ClusterManager
.
removeListener
(
this
);
;
}
public
void
stopComponent
()
{
Log
.
info
(
"Jitsi Videobridge - stopComponent"
);
PropertyEventDispatcher
.
removeListener
(
this
);
executorService
.
shutdown
();
...
...
@@ -241,17 +284,10 @@ public class PluginImpl implements Plugin, PropertyEventListener
destroyIQHandlers
();
}
/**
* Initializes this <tt>Plugin</tt>.
*
* @param manager the <tt>PluginManager</tt> which loads and manages this
* <tt>Plugin</tt>
* @param pluginDirectory the directory into which this <tt>Plugin</tt> is
* located
* @see Plugin#initializePlugin(PluginManager, File)
*/
public
void
initializePlugin
(
final
PluginManager
manager
,
final
File
pluginDirectory
)
public
void
startComponent
()
{
Log
.
info
(
"Jitsi Videobridge - startComponent"
);
PropertyEventDispatcher
.
addListener
(
this
);
System
.
setProperty
(
"net.java.sip.communicator.SC_HOME_DIR_LOCATION"
,
pluginDirectory
.
getPath
());
...
...
@@ -352,22 +388,46 @@ public class PluginImpl implements Plugin, PropertyEventListener
{
ce
.
printStackTrace
(
System
.
err
);
}
}
});
}
boolean
nodejs
=
XMPPServer
.
getInstance
().
getPluginManager
().
getPlugin
(
"nodejs"
)
!=
null
;
@Override
public
void
joinedCluster
()
{
Log
.
info
(
"Jitsi Videobridge - joinedCluster"
);
stopComponent
();
}
if
(
nodejs
)
@Override
public
void
joinedCluster
(
byte
[]
arg0
)
{
Log
.
info
(
"Found NodeJs Plugin. Starting Etherpad"
);
JiveGlobals
.
setProperty
(
"js.jitsivideobridge.etherpad.path"
,
pluginDirectory
.
getAbsolutePath
()
+
File
.
separator
+
"apps"
+
File
.
separator
+
"ofmeet"
);
JiveGlobals
.
setProperty
(
"js.jitsivideobridge.etherpad"
,
"node_modules/ep_etherpad-lite/node/server.js"
);
}
@Override
public
void
leftCluster
()
{
Log
.
info
(
"Jitsi Videobridge - leftCluster"
);
startComponent
();
}
});
@Override
public
void
leftCluster
(
byte
[]
arg0
)
{
}
/**
@Override
public
void
markedAsSeniorClusterMember
()
{
Log
.
info
(
"Jitsi Videobridge - markedAsSeniorClusterMember"
);
startComponent
();
}
/**
*/
private
static
final
SecurityHandler
basicAuth
(
String
username
,
String
password
,
String
realm
)
{
...
...
src/plugins/jitsivideobridge/src/web/jitsi-videobridge.jsp
View file @
c1024520
...
...
@@ -174,7 +174,7 @@
<fmt:message
key=
"config.page.configuration.ofmeet.resolution"
/>
</td>
<td><input
type=
"text"
size=
"10"
maxlength=
"100"
name=
"resolution"
value=
"
<%=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.resolution"
,
"
72
0"
)
%>
"
>
value=
"
<%=
JiveGlobals
.
getProperty
(
"org.jitsi.videobridge.ofmeet.resolution"
,
"
36
0"
)
%>
"
>
</td>
</tr>
<tr>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment