Date startDate = new Date();
//add streamings to record File
if (!conferenceType.equals("audience") || rcl.getIsMod()){
RoomStream roomStream = new RoomStream();
String streamName = generateFileName(Long.valueOf(rcl.getBroadCastID()).toString());
//if the user does publish av, a, v
if (!rcl.getAvsettings().equals("n")){
recordShow(conn, rcl.getBroadCastID(), streamName);
}
roomStream.setStreamName(streamName);
//stream starting
roomStream.setStreamstart(true);
//is not only a avset-event
roomStream.setAvset(false);
roomStream.setRemoteAdress(remoteAdress);
roomStream.setStartdate(startDate);
roomStream.setStarttime(0L);
roomStream.setRcl(rcl);
if (roomRecording.getRoomStreams() == null) {
roomRecording.setRoomStreams(new LinkedList<RoomStream>());
}
roomRecording.getRoomStreams().add(roomStream);