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);
}
}
Aggregations