Examples of VoiceStartRecordingEvent


Examples of org.bigbluebutton.webconference.voice.events.VoiceStartRecordingEvent

       
      if (log.isDebugEnabled())
        log.debug("Handling conferenceEventRecord " + action);
     
      if (action.equals(START_RECORDING_EVENT)) {
            VoiceStartRecordingEvent sre = new VoiceStartRecordingEvent(confName, true);
            sre.setRecordingFilename(getRecordFilenameFromEvent(event));
            sre.setTimestamp(genTimestamp().toString());
           
            log.info("Voice conference recording started. file=[" + getRecordFilenameFromEvent(event) + "], conf=[" + confName + "]");
           
            conferenceEventListener.handleConferenceEvent(sre);       
      } else if (action.equals(STOP_RECORDING_EVENT)) {
          VoiceStartRecordingEvent srev = new VoiceStartRecordingEvent(confName, false);
            srev.setRecordingFilename(getRecordFilenameFromEvent(event));
            srev.setTimestamp(genTimestamp().toString());
           
            log.info("Voice conference recording stopped. file=[" + getRecordFilenameFromEvent(event) + "], conf=[" + confName + "]");          
            conferenceEventListener.handleConferenceEvent(srev);       
      } else {
          if (log.isDebugEnabled())
View Full Code Here

Examples of org.bigbluebutton.webconference.voice.events.VoiceStartRecordingEvent

      log.debug("Processing UnknownEvent " + event.getClass().getName() + " for room: " + event.getRoom() );
    }   
  }
 
  private void recordStartRecordingEvent(VoiceConferenceEvent event, String room) {
    VoiceStartRecordingEvent sre = (VoiceStartRecordingEvent) event;
    StartRecordingVoiceRecordEvent evt = new StartRecordingVoiceRecordEvent(sre.startRecord());
    evt.setMeetingId(room);
    evt.setTimestamp(genTimestamp());
    evt.setBridge(event.getRoom());
    evt.setRecordingTimestamp(sre.getTimestamp());
    evt.setFilename(sre.getRecordingFilename());
    System.out.println("*** Recording voice " + sre.startRecord() + " timestamp: " + evt.toMap().get("recordingTimestamp") + " file: " + evt.toMap().get("filename"));
    recorder.record(room, evt);
  }
View Full Code Here

Examples of org.bigbluebutton.webconference.voice.events.VoiceStartRecordingEvent

      } else if (event instanceof VoiceUserTalkingEvent) {
        System.out.println("************** FreeswitchConferenceEventListener VoiceUserTalkingEvent ");
        VoiceUserTalkingEvent evt = (VoiceUserTalkingEvent) event;
        vcs.voiceUserTalking(evt.getUserId(), evt.getRoom(), evt.isTalking());
      } else if (event instanceof VoiceStartRecordingEvent) {
        VoiceStartRecordingEvent evt = (VoiceStartRecordingEvent) event;
        System.out.println("************** FreeswitchConferenceEventListener VoiceStartRecordingEvent recording=[" + evt.startRecord() + "]");
        vcs.voiceStartedRecording(evt.getRoom(), evt.getRecordingFilename(), evt.getTimestamp(), evt.startRecord());
      }        
      }
    };
   
    runExec.execute(task);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.