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
f9104406
Commit
f9104406
authored
11 years ago
by
Boris Grozev
Browse files
Options
Downloads
Patches
Plain Diff
Adds a MediaStream.removeReceiveStreamForSsrc() method
parent
d9a5d4e2
No related branches found
No related tags found
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
+33
-0
33 additions, 0 deletions
src/org/jitsi/impl/neomedia/MediaStreamImpl.java
src/org/jitsi/service/neomedia/MediaStream.java
+8
-0
8 additions, 0 deletions
src/org/jitsi/service/neomedia/MediaStream.java
with
41 additions
and
0 deletions
src/org/jitsi/impl/neomedia/MediaStreamImpl.java
+
33
−
0
View file @
f9104406
...
@@ -2888,4 +2888,37 @@ public void addDynamicRTPPayloadTypeOverride(byte originalPt,
...
@@ -2888,4 +2888,37 @@ public void addDynamicRTPPayloadTypeOverride(byte originalPt,
ptTransformEngine
.
addPTMappingOverride
(
originalPt
,
overloadPt
);
ptTransformEngine
.
addPTMappingOverride
(
originalPt
,
overloadPt
);
}
}
}
}
/**
* {@inheritDoc}
*/
public
void
removeReceiveStreamForSsrc
(
long
ssrc
)
{
Vector
receiveStreamsVector
=
rtpManager
.
getReceiveStreams
();
ReceiveStream
toRemove
=
null
;
for
(
int
i
=
0
;
i
<
receiveStreamsVector
.
size
();
i
++)
{
ReceiveStream
receiveStream
=
(
ReceiveStream
)
receiveStreamsVector
.
get
(
i
);
if
(
receiveStream
.
getSSRC
()
==
ssrc
)
{
toRemove
=
receiveStream
;
break
;
}
}
if
(
toRemove
!=
null
)
{
synchronized
(
receiveStreams
)
{
if
(
receiveStreams
.
contains
(
toRemove
))
{
receiveStreams
.
remove
(
toRemove
);
MediaDeviceSession
deviceSession
=
getDeviceSession
();
if
(
deviceSession
!=
null
)
deviceSession
.
removeReceiveStream
(
toRemove
);
}
}
}
}
}
}
This diff is collapsed.
Click to expand it.
src/org/jitsi/service/neomedia/MediaStream.java
+
8
−
0
View file @
f9104406
...
@@ -376,4 +376,12 @@ public void addDynamicRTPPayloadTypeOverride(byte originalPt,
...
@@ -376,4 +376,12 @@ public void addDynamicRTPPayloadTypeOverride(byte originalPt,
* this MediaStream.
* this MediaStream.
*/
*/
public
MediaStreamStats
getMediaStreamStats
();
public
MediaStreamStats
getMediaStreamStats
();
/**
* Removes the <tt>ReceiveStream</tt> with SSRC <tt>ssrc</tt>, if there is
* such a <tt>ReceiveStream</tt>, from the receive streams of this
* <tt>MediaStream</tt>
* @param ssrc the SSRC for which to remove a <tt>ReceiveStream</tt>
*/
public
void
removeReceiveStreamForSsrc
(
long
ssrc
);
}
}
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