* @return
*/
public String recordMeetingStream(String conferenceType, Object initwhiteboardvars,
String roomRecordingsTableString, String comment){
try {
IConnection current = Red5.getConnectionLocal();
RoomClient currentClient = this.clientListManager.getClientByStreamId(current.getClient().getId());
Long room_id = currentClient.getRoom_id();
String recordingName = generateFileName(Long.valueOf(currentClient.getBroadCastID()).toString());
currentClient.setIsRecording(true);
currentClient.setRoomRecordingName(recordingName);
this.clientListManager.updateClientByStreamId(current.getClient().getId(), currentClient);
Date now = new Date();
RoomRecording roomRecording = new RoomRecording();
roomRecording.setConferenceType(conferenceType);
roomRecording.setRoom_setup(Roommanagement.getInstance().getRoomById(currentClient.getRoom_id()));
roomRecording.setRoomRecordingsTableString(roomRecordingsTableString);
roomRecording.setStarttime(now);
roomRecording.setComment(comment);
//get all stream and start recording them
Collection<Set<IConnection>> conCollection = current.getScope().getConnections();
for (Set<IConnection> conset : conCollection) {
for (IConnection conn : conset) {
if (conn != null) {
if (conn instanceof IServiceCapableConnection) {
RoomClient rcl = this.clientListManager.getClientByStreamId(conn.getClient().getId());