}
public Long _clientCancelRecording(String roomrecordingName){
try {
IConnection current = Red5.getConnectionLocal();
RoomClient currentClient = this.clientListManager.getClientByStreamId(current.getClient().getId());
Long room_id = currentClient.getRoom_id();
currentClient.setIsRecording(false);
currentClient.setRoomRecordingName("");
this.clientListManager.updateClientByStreamId(current.getClient().getId(), currentClient);
RoomRecording roomRecording = roomRecordingList.get(roomrecordingName);
String conferenceType = roomRecording.getConferenceType();
//get all stream and stop recording them
//Todo: Check that nobody does Recording at the same time Issue 253
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());