Package org.bigbluebutton.deskshare.server.recorder.event

Examples of org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent


    try {
      fo = new FileOutputStream(flvFilename);
      fo.write(svf.encodeHeader());
    } catch (FileNotFoundException e1) {
      log.error(StackTraceUtil.getStackTrace(e1));
      RecordErrorEvent event = new RecordErrorEvent(session);
      event.setReason("Failed to create recording output.");
      listeners.notifyListeners(event);
    } catch (IOException e) {
      log.error(StackTraceUtil.getStackTrace(e));
      RecordErrorEvent event = new RecordErrorEvent(session);
      event.setReason("Cannot record to recording output.");
      listeners.notifyListeners(event);
    }
   
    sendCapturedScreen = true;
    log.info("Starting stream");
    capturedScreenSender = new Runnable() {
      public void run() {
        while (sendCapturedScreen) {
          try {
            IoBuffer frame = screenQueue.take();
            recordFrameToFile(frame);
          } catch (InterruptedException e) {
            log.error("InterruptedExeption while taking event.");
            RecordErrorEvent event = new RecordErrorEvent(session);
            event.setReason("Cannot record to recording output.");
            listeners.notifyListeners(event);
          }
        }
      }
    };
    exec.execute(capturedScreenSender);
    RecordStartedEvent event = new RecordStartedEvent(session);
    event.setFile(flvFilename);
    listeners.notifyListeners(event);
  }
View Full Code Here


      fo.write(svf.encodeFlvData(frame.array()));
      RecordUpdateEvent event = new RecordUpdateEvent(session);
      listeners.notifyListeners(event);
    } catch (IOException e) {
      log.error(StackTraceUtil.getStackTrace(e));
      RecordErrorEvent event = new RecordErrorEvent(session);
      event.setReason("Cannot record to recording output.");
      listeners.notifyListeners(event);
    } catch (FlvEncodeException e) {
      log.error(StackTraceUtil.getStackTrace(e));
      RecordErrorEvent event = new RecordErrorEvent(session);
      event.setReason("Cannot record to recording output.");
      listeners.notifyListeners(event);
    }   
  }
View Full Code Here

        log.info("Closing stream");
      fo.close();
      svf = null;
    } catch (IOException e) {
      log.error(StackTraceUtil.getStackTrace(e));
      RecordErrorEvent event = new RecordErrorEvent(session);
      event.setReason("Cannot record to recording output.");
      listeners.notifyListeners(event);
    }
    RecordStoppedEvent event = new RecordStoppedEvent(session);
    event.setFile(flvFilename);
    listeners.notifyListeners(event);
  }
View Full Code Here

TOP

Related Classes of org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent

Copyright © 2018 www.massapicom. 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.