Search in sources :

Example 1 with FlvRecording

use of org.apache.openmeetings.persistence.beans.flvrecord.xsd.FlvRecording in project OpenOLAT by OpenOLAT.

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)

Example 2 with FlvRecording

use of org.apache.openmeetings.persistence.beans.flvrecord.xsd.FlvRecording 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

ConnectException (java.net.ConnectException)2 ArrayList (java.util.ArrayList)2 RoomServicePortType (org.apache.openmeetings.axis.services.RoomServicePortType)2 FlvRecording (org.apache.openmeetings.persistence.beans.flvrecord.xsd.FlvRecording)2 OpenMeetingsRecording (org.olat.modules.openmeetings.model.OpenMeetingsRecording)2