Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
L
libjitsi
Manage
Activity
Members
Code
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Model registry
Analyze
Contributor analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
ZRTP
libjitsi
Commits
b247da70
Commit
b247da70
authored
10 years ago
by
Boris Grozev
Browse files
Options
Downloads
Patches
Plain Diff
Adds RTPTranslatorImpl#setSSRCFactory.
parent
33944cd8
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
src/org/jitsi/impl/neomedia/MediaStreamImpl.java
+4
-0
4 additions, 0 deletions
src/org/jitsi/impl/neomedia/MediaStreamImpl.java
src/org/jitsi/impl/neomedia/rtp/translator/RTPTranslatorImpl.java
+20
-0
20 additions, 0 deletions
...jitsi/impl/neomedia/rtp/translator/RTPTranslatorImpl.java
with
24 additions
and
0 deletions
src/org/jitsi/impl/neomedia/MediaStreamImpl.java
+
4
−
0
View file @
b247da70
...
...
@@ -24,6 +24,7 @@
import
org.jitsi.impl.neomedia.format.*
;
import
org.jitsi.impl.neomedia.protocol.*
;
import
org.jitsi.impl.neomedia.rtp.*
;
import
org.jitsi.impl.neomedia.rtp.translator.*
;
import
org.jitsi.impl.neomedia.transform.*
;
import
org.jitsi.impl.neomedia.transform.csrc.*
;
import
org.jitsi.impl.neomedia.transform.dtmf.*
;
...
...
@@ -3214,9 +3215,12 @@ public void setSSRCFactory(SSRCFactory ssrcFactory)
this
.
ssrcFactory
=
ssrcFactory
;
StreamRTPManager
rtpManager
=
this
.
rtpManager
;
RTPTranslator
translator
=
rtpTranslator
;
if
(
rtpManager
!=
null
)
rtpManager
.
setSSRCFactory
(
ssrcFactory
);
else
if
(
translator
instanceof
RTPTranslatorImpl
)
((
RTPTranslatorImpl
)
translator
).
setSSRCFactory
(
ssrcFactory
);
}
}
...
...
This diff is collapsed.
Click to expand it.
src/org/jitsi/impl/neomedia/rtp/translator/RTPTranslatorImpl.java
+
20
−
0
View file @
b247da70
...
...
@@ -1046,4 +1046,24 @@ public boolean writeRTCPFeedbackMessage(
rtcpFeedbackMessage
,
destination
);
}
/**
* Sets the <tt>SSRCFactory</tt> which is to generate new synchronization
* source (SSRC) identifiers.
*
* @param ssrcFactory the <tt>SSRCFactory</tt> which is to generate new
* synchronization source (SSRC) identifiers or <tt>null</tt> if this
* <tt>MediaStream</tt> is to employ internal logic to generate new
* synchronization source (SSRC) identifiers
*/
public
void
setSSRCFactory
(
SSRCFactory
ssrcFactory
)
{
RTPManager
manager
=
this
.
manager
;
if
(
manager
instanceof
org
.
jitsi
.
impl
.
neomedia
.
jmfext
.
media
.
rtp
.
RTPSessionMgr
)
{
((
org
.
jitsi
.
impl
.
neomedia
.
jmfext
.
media
.
rtp
.
RTPSessionMgr
)
manager
)
.
setSSRCFactory
(
ssrcFactory
);
}
}
}
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment