Search in sources :

Example 6 with OpenMeetingsRecording

use of org.olat.modules.openmeetings.model.OpenMeetingsRecording in project openolat by klemens.

the class OpenMeetingsManagerImpl method getRecordings.

@Override
public List<OpenMeetingsRecording> getRecordings(long roomId) throws OpenMeetingsException {
    try {
        String adminSID = adminLogin();
        RoomServicePortType roomWs = getRoomWebService();
        List<FlvRecording> recordings = roomWs.getFlvRecordingByRoomId(adminSID, roomId);
        List<OpenMeetingsRecording> recList = new ArrayList<OpenMeetingsRecording>();
        if (recordings != null) {
            for (FlvRecording recording : recordings) {
                if (recording != null) {
                    OpenMeetingsRecording rec = new OpenMeetingsRecording();
                    rec.setRoomId(recording.getRoomId());
                    rec.setRecordingId(recording.getFlvRecordingId());
                    rec.setFilename(recording.getFileName());
                    rec.setDownloadName(recording.getFileHash());
                    rec.setDownloadNameAlt(recording.getAlternateDownload());
                    rec.setPreviewImage(recording.getPreviewImage());
                    rec.setWidth(recording.getFlvWidth());
                    rec.setHeight(recording.getFlvHeight());
                    recList.add(rec);
                }
            }
        }
        return recList;
    } catch (Exception e) {
        log.error("", e);
        throw translateException(e, 0);
    }
}
Also used : FlvRecording(org.apache.openmeetings.persistence.beans.flvrecord.xsd.FlvRecording) OpenMeetingsRecording(org.olat.modules.openmeetings.model.OpenMeetingsRecording) ArrayList(java.util.ArrayList) RoomServicePortType(org.apache.openmeetings.axis.services.RoomServicePortType) ConnectException(java.net.ConnectException)

Aggregations

OpenMeetingsRecording (org.olat.modules.openmeetings.model.OpenMeetingsRecording)6 ArrayList (java.util.ArrayList)4 ConnectException (java.net.ConnectException)2 RoomServicePortType (org.apache.openmeetings.axis.services.RoomServicePortType)2 FlvRecording (org.apache.openmeetings.persistence.beans.flvrecord.xsd.FlvRecording)2 TableEvent (org.olat.core.gui.components.table.TableEvent)2 OpenMeetingsException (org.olat.modules.openmeetings.manager.OpenMeetingsException)2