Search in sources :

Example 1 with RecordUpdateEvent

use of org.bigbluebutton.deskshare.server.recorder.event.RecordUpdateEvent in project bigbluebutton by bigbluebutton.

the class FileRecorder method recordFrameToFile.

private void recordFrameToFile(IoBuffer frame) {
    try {
        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);
    }
}
Also used : FlvEncodeException(org.bigbluebutton.deskshare.server.session.FlvEncodeException) RecordUpdateEvent(org.bigbluebutton.deskshare.server.recorder.event.RecordUpdateEvent) RecordErrorEvent(org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent) IOException(java.io.IOException)

Aggregations

IOException (java.io.IOException)1 RecordErrorEvent (org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent)1 RecordUpdateEvent (org.bigbluebutton.deskshare.server.recorder.event.RecordUpdateEvent)1 FlvEncodeException (org.bigbluebutton.deskshare.server.session.FlvEncodeException)1