diff options
author | Damian Minkov <damencho@jitsi.org> | 2011-11-17 07:28:36 +0000 |
---|---|---|
committer | Damian Minkov <damencho@jitsi.org> | 2011-11-17 07:28:36 +0000 |
commit | 7f6d5954ba06e9f08f1602c4932f15f70feee56f (patch) | |
tree | ef070045975e8c2b48425b049c0bee1f243c2877 /src/net/java/sip/communicator/service/protocol | |
parent | 356fca64006339cda80db8bf39317c66810fbf21 (diff) | |
download | jitsi-7f6d5954ba06e9f08f1602c4932f15f70feee56f.zip jitsi-7f6d5954ba06e9f08f1602c4932f15f70feee56f.tar.gz jitsi-7f6d5954ba06e9f08f1602c4932f15f70feee56f.tar.bz2 |
Isolates notification management and triggering.
Diffstat (limited to 'src/net/java/sip/communicator/service/protocol')
-rw-r--r-- | src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java b/src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java index e004aea..3fa9add 100644 --- a/src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java +++ b/src/net/java/sip/communicator/service/protocol/media/MediaAwareCall.java @@ -749,6 +749,13 @@ public abstract class MediaAwareCall< addCallChangeListener(callChangeListener); + Iterator<Recorder.Listener> iterListeners = + ProtocolMediaActivator.getMediaService().getRecorderListeners(); + while(iterListeners.hasNext()) + { + recorder.addListener(iterListeners.next()); + } + /* * If the recorder gets stopped earlier than this call ends, don't * wait for the end of the call because callChangeListener will keep @@ -760,6 +767,14 @@ public abstract class MediaAwareCall< public void recorderStopped(Recorder recorder) { removeCallChangeListener(callChangeListener); + + Iterator<Recorder.Listener> iter = + ProtocolMediaActivator.getMediaService() + .getRecorderListeners(); + while(iter.hasNext()) + { + recorder.removeListener(iter.next()); + } } }); |