Added RTMPAdapterService.java and a bean to register properly with bbb-apps

This commit is contained in:
deniszgonjanin 2011-02-06 00:02:47 +00:00
parent 227dc4cc11
commit 5678c40416
3 changed files with 48 additions and 2 deletions

View File

@ -19,7 +19,7 @@
* *
* ===License Header=== * ===License Header===
*/ */
package org.bigbluebutton.conference.service.whiteboard; package org.bigbluebutton.conference.service.rtmpadapter;
import java.util.ArrayList; import java.util.ArrayList;
import java.util.List; import java.util.List;
@ -38,7 +38,7 @@ import redis.clients.jedis.Jedis;
public class RTMPAdapterApp extends MultiThreadedApplicationAdapter implements IApplication { public class RTMPAdapterApp extends MultiThreadedApplicationAdapter implements IApplication {
private static Logger log = Red5LoggerFactory.getLogger(WhiteboardApplication.class, "bigbluebutton"); private static Logger log = Red5LoggerFactory.getLogger(RTMPAdapterApp.class, "bigbluebutton");
private static final String APP = "RTMPAdapter"; private static final String APP = "RTMPAdapter";
private Jedis jedis; private Jedis jedis;

View File

@ -0,0 +1,41 @@
/**
* ===License Header===
*
* BigBlueButton open source conferencing system - http://www.bigbluebutton.org/
*
* Copyright (c) 2010 BigBlueButton Inc. and by respective authors (see below).
*
* This program is free software; you can redistribute it and/or modify it under the
* terms of the GNU Lesser General Public License as published by the Free Software
* Foundation; either version 2.1 of the License, or (at your option) any later
* version.
*
* BigBlueButton is distributed in the hope that it will be useful, but WITHOUT ANY
* WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
* PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public License along
* with BigBlueButton; if not, see <http://www.gnu.org/licenses/>.
*
* ===License Header===
*/
package org.bigbluebutton.conference.service.rtmpadapter;
import java.util.List;
import org.red5.compatibility.flex.messaging.io.ArrayCollection;
import org.red5.logging.Red5LoggerFactory;
import org.slf4j.Logger;
public class RTMPAdapterService {
private static Logger log = Red5LoggerFactory.getLogger(RTMPAdapterService.class, "bigbluebutton");
private RTMPAdapterApp application;
public void setRTMPAdapterApp(RTMPAdapterApp a){
log.debug("Setting RTMPAdapter application instance");
this.application = a;
}
}

View File

@ -140,6 +140,11 @@
<bean id="rtmpAdapter" <bean id="rtmpAdapter"
class="org.bigbluebutton.conference.service.rtmpadapter.RTMPAdapterApp"> class="org.bigbluebutton.conference.service.rtmpadapter.RTMPAdapterApp">
</bean> </bean>
<bean id="rtmpAdapter.service" class="org.bigbluebutton.conference.service.rtmpadapter.RTMPAdapterService">
<property name="RTMPAdapterApp"> <ref local="rtmpAdapter"/></property>
</bean>
<!-- END RTMPAdapter --> <!-- END RTMPAdapter -->