if (streamToClose == null) {
log.debug("Could not aquire Stream, maybe already closed");
}
ClientBroadcastStream stream = (ClientBroadcastStream) streamToClose;
if (stream.getStreamListeners() != null) {
for (Iterator<IStreamListener> iter = stream.getStreamListeners().iterator();iter.hasNext();) {
IStreamListener iStreamListener = iter.next();
ListenerAdapter listenerAdapter = (ListenerAdapter) iStreamListener;
log.debug("Stream Closing ?? "+listenerAdapter.getFlvRecordingMetaDataId()+ " " +flvRecordingMetaDataId);
if (listenerAdapter.getFlvRecordingMetaDataId().equals(flvRecordingMetaDataId)) {
log.debug("Stream Closing :: "+flvRecordingMetaDataId);
listenerAdapter.closeStream();
}
}
for (IStreamListener iStreamListener : stream.getStreamListeners()) {
stream.removeStreamListener(iStreamListener);
}
}
// Just for Debugging