diff --git a/src/org/jitsi/impl/neomedia/MediaServiceImpl.java b/src/org/jitsi/impl/neomedia/MediaServiceImpl.java index 0da2349bd631243fb866365798ca264b004346a9..a14188885290bf766dbf97c4a4c320f490971c2d 100755 --- a/src/org/jitsi/impl/neomedia/MediaServiceImpl.java +++ b/src/org/jitsi/impl/neomedia/MediaServiceImpl.java @@ -134,6 +134,12 @@ public class MediaServiceImpl private static final String ENCODING_CONFIG_PROP_PREFIX = "net.java.sip.communicator.impl.neomedia.codec.EncodingConfiguration"; + /** + * The value which will be used for the canonical end-point identifier + * (CNAME) in RTCP packets sent by this running instance of libjitsi. + */ + private static final String rtpCname = UUID.randomUUID().toString(); + /** * The <tt>CaptureDevice</tt> user choices such as the default audio and * video capture devices. @@ -1635,6 +1641,14 @@ public static boolean isMediaTypeSupportEnabled(MediaType mediaType) && !Boolean.getBoolean(propertyName); } + /** + * {@inheritDoc} + */ + public String getRtpCname() + { + return rtpCname; + } + /** * The listener which will be notified for changes in the video container. * Whether the container is displayable or not we will stop the player diff --git a/src/org/jitsi/service/neomedia/MediaService.java b/src/org/jitsi/service/neomedia/MediaService.java index e44b3071d6460bed6b5d4b2a305e1a8ec5a99f1f..8426661f8ba80bd6ff4830cd01255cb9bc322f38 100644 --- a/src/org/jitsi/service/neomedia/MediaService.java +++ b/src/org/jitsi/service/neomedia/MediaService.java @@ -380,4 +380,14 @@ public Object getVideoPreviewComponent( * list of listeners interested in notifications from <tt>Recorder</tt>s */ public void removeRecorderListener(Recorder.Listener listener); + + /** + * Returns the value which will be used for the canonical end-point + * identifier (CNAME) in RTCP packets sent by this running instance of + * libjitsi. + * @return the value which will be used for the canonical end-point + * identifier (CNAME) in RTCP packets sent by this running instance of + * libjitsi. + */ + public String getRtpCname(); }