- put rec and playback required params in properties file

This commit is contained in:
Richard Alam 2011-02-15 10:41:15 -05:00
parent 1e27b3e1fe
commit dda58fe6bb
2 changed files with 24 additions and 2 deletions

View File

@ -99,3 +99,14 @@ beans.presentationService.testPresentationName=appkonference
beans.presentationService.testUploadedPresentation=appkonference.txt
# Test voiceBridge number
beans.dynamicConferenceService.testVoiceBridge=99999
beans.dynamicConferenceService.scriptsHome=/home/firstuser/python/src
beans.dynamicConferenceService.audioRecDir=/var/freeswitch/meetings
beans.dynamicConferenceService.presentationDir=${presentationDir}
beans.dynamicConferenceService.archiveDir=/var/bigbluebutton/archive
beans.dynamicConferenceService.redisHost=192.168.0.166
beans.dynamicConferenceService.redisPort=6379
beans.dynamicConferenceService.ingestDir=/var/bigbluebutton/ingest
beans.dynamicConferenceService.publishDir=/var/bigbluebutton/recordings
beans.dynamicConferenceService.playbackHost=192.168.0.166

View File

@ -40,6 +40,17 @@ public class DynamicConferenceService implements IDynamicConferenceService {
def recordingDir
def recordingFile
/** For record and playback **/
def scriptsHome
def audioRecDir
def presentationDir
def archiveDir
def redisHost
def redisPort
def ingestDir
def publishDir
def playbackHost
// TODO: need to remove use of DynamicConference and make it use "Room.groovy" instead
// so that both apps and web are using common domain objects and we don't map between them
private final Map<String, Room> roomsByToken
@ -210,7 +221,7 @@ public class DynamicConferenceService implements IDynamicConferenceService {
}
private void startIngestAndProcessing(meetingId) {
String COMMAND = "python /home/firstuser/python/src/ingestandproc.py -m" + meetingId + " -a /var/freeswitch/meetings -p /var/bigbluebutton -r /var/bigbluebutton/archive -e 192.168.0.166 -o 6379 -i /var/bigbluebutton/ingest -b /var/bigbluebutton/recordings";
String COMMAND = "python ${scriptsHome}/ingestandproc.py -m ${meetingId} -a ${audioRecDir} -p ${presentationDir} -r ${archiveDir} -e ${redisHost} -o ${redisPort} -i ${ingestDir} -b ${publishDir} -s ${scriptsHome} -k ${playbackHost}"
try {
Process p = Runtime.getRuntime().exec(COMMAND);