public void addCallbackListener(CallbackListener listener) {
		synchronized (mListeners) {
			if (!mListeners.isEmpty()) {
				for (CallbackListener cl : mListeners) {
					if (cl == listener) return;
				}
			}
			mListeners.add(listener);			
		}
	}
See {@link RtspServer.CallbackListener} to check out what events will be fired once you set up a listener.
@param listener The listener
src/net/majorkernelpanic/streaming/rtsp/RtspServer.java