Examples of VoiceUserJoinedEvent


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

        if (matcher.matches()) {     
          voiceUserId = matcher.group(1).trim();
          callerIdName = matcher.group(2).trim();
        }
       
        VoiceUserJoinedEvent pj = new VoiceUserJoinedEvent(voiceUserId, memberId.toString(), confName, callerId, callerIdName, muted, speaking);
        conferenceEventListener.handleConferenceEvent(pj);
    }
View Full Code Here

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

    System.out.println("*** Recording voice " + sre.startRecord() + " timestamp: " + evt.toMap().get("recordingTimestamp") + " file: " + evt.toMap().get("filename"));
    recorder.record(room, evt);
  }
 
  private void recordParticipantJoinedEvent(VoiceConferenceEvent event, String room) {
    VoiceUserJoinedEvent pje = (VoiceUserJoinedEvent) event;

    ParticipantJoinedVoiceRecordEvent evt = new ParticipantJoinedVoiceRecordEvent();
    evt.setMeetingId(room);
    evt.setTimestamp(genTimestamp());
    evt.setBridge(event.getRoom());
    evt.setParticipant(pje.getUserId().toString());
    evt.setCallerName(pje.getCallerIdName());
    evt.setCallerNumber(pje.getCallerIdName());
    evt.setMuted(pje.getMuted());
    evt.setTalking(pje.getSpeaking());
   
    recorder.record(room, evt);
  }
View Full Code Here

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

  private void sendMessageToBigBlueButton(final VoiceConferenceEvent event) {
    Runnable task = new Runnable() {
      public void run() {
        if (event instanceof VoiceUserJoinedEvent) {
        System.out.println("************** FreeswitchConferenceEventListener received voiceUserJoined ");
        VoiceUserJoinedEvent evt = (VoiceUserJoinedEvent) event;
        vcs.voiceUserJoined(evt.getVoiceUserId(), evt.getUserId(), evt.getRoom(),
            evt.getCallerIdNum(), evt.getCallerIdName(),
            evt.getMuted(), evt.getSpeaking());
      } else if (event instanceof VoiceUserLeftEvent) {
        System.out.println("************** FreeswitchConferenceEventListener received VoiceUserLeftEvent ");
        VoiceUserLeftEvent evt = (VoiceUserLeftEvent) event;
        vcs.voiceUserLeft(evt.getUserId(), evt.getRoom());
      } else if (event instanceof VoiceUserMutedEvent) {
        System.out.println("************** FreeswitchConferenceEventListener VoiceUserMutedEvent ");
        VoiceUserMutedEvent evt = (VoiceUserMutedEvent) event;
        vcs.voiceUserMuted(evt.getUserId(), evt.getRoom(), evt.isMuted());
      } 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

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

            ByteArrayInputStream bs = new ByteArrayInputStream(responseBody.getBytes());
            sp.parse(bs, confXML);

            //Maybe move this to XMLResponseConferenceListParser, sendConfrenceEvents ?
            VoiceUserJoinedEvent pj;

            for(ConferenceMember member : confXML.getConferenceList()) {
                log.debug("conf list member [{}] for room [{}].", member.getId(), confXML.getConferenceRoom());
                //Foreach found member in conference create a JoinedEvent
                String callerId = member.getCallerId();
                String callerIdName = member.getCallerIdName();
                String voiceUserId = callerIdName;
               
            Matcher matcher = CALLERNAME_PATTERN.matcher(callerIdName);
            if (matcher.matches()) {     
              voiceUserId = matcher.group(1).trim();
              callerIdName = matcher.group(2).trim();
            }
           
                pj = new VoiceUserJoinedEvent(voiceUserId, member.getId().toString(), confXML.getConferenceRoom(),
                    callerId, callerIdName, member.getMuted(), member.getSpeaking());
                eventListener.handleConferenceEvent(pj);
            }

        }catch(SAXException se) {
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.