Skip to content
Browse files

Introduces the jitsi-videobridge project.

  • Loading branch information...
lyubomir committed Jul 23, 2012
0 parents commit e8007d29080f7d1312a6ded42dfb40ffabf583c2
@@ -0,0 +1,30 @@
<?xml version="1.0" encoding="UTF-8"?>
<classpathentry kind="src" path="src"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
<classpathentry kind="lib" path="lib/bouncycastle.jar"/>
<classpathentry kind="lib" path="lib/configuration.jar"/>
<classpathentry kind="lib" path="lib/concurrentlinkedhashmap-lru.jar"/>
<classpathentry kind="lib" path="lib/dns.jar"/>
<classpathentry kind="lib" path="lib/dom4j.jar"/>
<classpathentry kind="lib" path="lib/fileaccess.jar"/>
<classpathentry kind="lib" path="lib/libidn.jar"/>
<classpathentry kind="lib" path="lib/jitsi-android-osgi.jar"/>
<classpathentry kind="lib" path="lib/json.jar"/>
<classpathentry kind="lib" path="lib/neomedia.jar"/>
<classpathentry kind="lib" path="lib/netaddr.jar"/>
<classpathentry kind="lib" path="lib/osgi.core.jar"/>
<classpathentry kind="lib" path="lib/packetlogging.jar"/>
<classpathentry kind="lib" path="lib/protocol-jabber.jar"/>
<classpathentry kind="lib" path="lib/protocol-media.jar"/>
<classpathentry kind="lib" path="lib/resourcemanager.jar"/>
<classpathentry kind="lib" path="lib/slf4j-api.jar"/>
<classpathentry kind="lib" path="lib/smack.jar"/>
<classpathentry kind="lib" path="lib/tinder.jar"/>
<classpathentry kind="lib" path="lib/ui-service.jar"/>
<classpathentry kind="lib" path="lib/util.jar"/>
<classpathentry kind="lib" path="lib/whack.jar"/>
<classpathentry kind="lib" path="lib/xpp3.jar"/>
<classpathentry kind="lib" path="lib/zrtp4j.jar"/>
<classpathentry kind="output" path="classes"/>
@@ -0,0 +1,17 @@
<?xml version="1.0" encoding="UTF-8"?>
@@ -0,0 +1,45 @@
<?xml version="1.0" encoding="UTF-8"?>
<project name="jitsi-videobridge">

<property file="" />
<property name="output" value="classes" />
<property name="run.arg.line" value="" />
<property name="run.jvmarg.line" value="" />

<path id="compile.classpath">
<fileset dir="lib" includes="*.jar" />
<path id="run.classpath">
<path refid="compile.classpath" />
<pathelement location="${output}" />

<target name="clean">
<delete failonerror="false" includeemptydirs="true">
<fileset dir="${output}" />

<target name="compile">
<mkdir dir="${output}" />
target="1.5" />

<target name="run">
fork="true" >
<jvmarg line="${run.jvmarg.line}" />
<arg line="${run.arg.line}" />

Binary file not shown.
BIN +307 KB lib/dom4j.jar
Binary file not shown.
Binary file not shown.
BIN +106 KB lib/libidn.jar
Binary file not shown.
BIN +330 KB lib/osgi.core.jar
Binary file not shown.
BIN +25.4 KB lib/slf4j-api.jar
Binary file not shown.
BIN +303 KB lib/smack.jar
Binary file not shown.
BIN +92 KB lib/tinder.jar
Binary file not shown.
BIN +85.9 KB lib/whack.jar
Binary file not shown.
BIN +117 KB lib/xpp3.jar
Binary file not shown.
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8" ?>
<description>Integrates Jitsi Video Bridge into Openfire.</description>
<name>Jitsi Video Bridge Openfire Plugin</name>
@@ -0,0 +1,100 @@
package org.jitsi.videobridge.openfire;


import org.jitsi.videobridge.*;
import org.jivesoftware.openfire.container.*;
import org.xmpp.component.*;

* Implements <tt>org.jivesoftware.openfire.container.Plugin</tt> to integrate
* Jitsi Video Bridge into Openfire.
* @author Lyubomir Marinov
public class PluginImpl
implements Plugin
* The Jabber component which has been added to {@link #componentManager}
* i.e. Openfire.
private Component component;

* The <tt>ComponentManager</tt> to which the {@link #component} of this
* <tt>Plugin</tt> has been added.
private ComponentManager componentManager;

* The subdomain of the address of {@link #component} with which it has been
* added to {@link #componentManager}.
private String subdomain;

* Destroys this <tt>Plugin</tt> i.e. releases the resources acquired by
* this <tt>Plugin</tt> throughout its life up until now and prepares it for
* garbage collection.
* @see Plugin#destroyPlugin()
public void destroyPlugin()
if ((componentManager != null) && (subdomain != null))
catch (ComponentException ce)
// TODO Auto-generated method stub
componentManager = null;
subdomain = null;
component = null;

* 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)
ComponentManager componentManager
= ComponentManagerFactory.getComponentManager();
String subdomain = ComponentImpl.SUBDOMAIN;
Component component = new ComponentImpl();
boolean added = false;

componentManager.addComponent(subdomain, component);
added = true;
catch (ComponentException ce)
if (added)
this.componentManager = componentManager;
this.subdomain = subdomain;
this.component = component;
this.componentManager = null;
this.subdomain = null;
this.component = null;

0 comments on commit e8007d2

Please sign in to comment.
You can’t perform that action at this time.