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
e768b2a8
Commit
e768b2a8
authored
10 years ago
by
George Politis
Browse files
Options
Downloads
Patches
Plain Diff
Changes BasicRTCPTerminationStrategy fields visibility and adds a few comments.
parent
f457c5cf
No related branches found
Branches containing commit
No related tags found
Tags containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
src/org/jitsi/impl/neomedia/rtcp/termination/strategies/BasicRTCPTerminationStrategy.java
+13
-5
13 additions, 5 deletions
.../termination/strategies/BasicRTCPTerminationStrategy.java
with
13 additions
and
5 deletions
src/org/jitsi/impl/neomedia/rtcp/termination/strategies/BasicRTCPTerminationStrategy.java
+
13
−
5
View file @
e768b2a8
...
...
@@ -28,7 +28,7 @@ public class BasicRTCPTerminationStrategy
* A cache of media receiver feedback. It contains both receiver report
* blocks and REMB packets.
*/
pr
ivate
final
FeedbackCache
feedbackCache
;
pr
otected
final
FeedbackCache
feedbackCache
;
/**
* The cache processor that will be making the RTCP reports coming from
...
...
@@ -46,7 +46,7 @@ public BasicRTCPTerminationStrategy()
/**
* The <tt>RTPTranslator</tt> associated with this strategy.
*/
pr
ivate
RTPTranslator
translator
;
pr
otected
RTPTranslator
translator
;
@Override
public
RTCPPacket
[]
makeReports
()
...
...
@@ -94,6 +94,8 @@ public RTCPPacket[] makeReports()
}
// Include REMB.
// TODO(gp) build REMB packets from scratch.
if
(
this
.
feedbackCacheProcessor
==
null
)
{
this
.
feedbackCacheProcessor
...
...
@@ -204,19 +206,25 @@ public void setRTPTranslator(RTPTranslator translator) {
this
.
translator
=
translator
;
}
/**
* 1. Removes receiver report blocks from RRs and SRs and kills REMBs.
* 2. Updates the receiver feedback cache.
*
* @param inPacket
* @return
*/
@Override
public
RTCPCompoundPacket
transformRTCPPacket
(
RTCPCompoundPacket
inPacket
)
{
// Removes receiver report blocks from RRs and SRs and kills REMBs.
if
(
inPacket
==
null
||
inPacket
.
packets
==
null
||
inPacket
.
packets
.
length
==
0
)
{
return
inPacket
;
}
Vector
<
RTCPPacket
>
outPackets
=
new
Vector
<
RTCPPacket
>(
inPacket
.
packets
.
length
);
Vector
<
RTCPPacket
>
outPackets
=
new
Vector
<
RTCPPacket
>(
inPacket
.
packets
.
length
);
// These are the data that are of interest to us : RR report blocks and
// REMBs. We'll also need the SSRC of the RTCP report sender.
...
...
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