Search in sources :

Example 1 with RecordStoppedEvent

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

the class FileRecorder method stop.

public void stop() {
    try {
        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);
}
Also used : RecordErrorEvent(org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent) IOException(java.io.IOException) RecordStoppedEvent(org.bigbluebutton.deskshare.server.recorder.event.RecordStoppedEvent)

Aggregations

IOException (java.io.IOException)1 RecordErrorEvent (org.bigbluebutton.deskshare.server.recorder.event.RecordErrorEvent)1 RecordStoppedEvent (org.bigbluebutton.deskshare.server.recorder.event.RecordStoppedEvent)1