|
|
@@ -88,20 +88,6 @@ public class VideoStopReceipts {
|
|
|
return snapshot != null && Objects.equals(nodeId, snapshot.nodeId) ? snapshot : null;
|
|
|
}
|
|
|
|
|
|
- /** Record a real device renegotiation without changing the original pool number.
|
|
|
- * Only the holder of the original allocation token may add it. */
|
|
|
- public boolean recordNegotiatedSsrc(String nodeId, String stream, String allocationToken, String poolSsrc, String negotiatedSsrc) {
|
|
|
- if (nodeId == null || stream == null || allocationToken == null || negotiatedSsrc == null) return false;
|
|
|
- return update(nodeId, stream, snapshot -> {
|
|
|
- Allocation allocation = snapshot.allocation;
|
|
|
- if (allocation == null || !Objects.equals(allocation.token, allocationToken)) return null;
|
|
|
- if (poolSsrc != null && !Objects.equals(allocation.ssrc, poolSsrc)) return null;
|
|
|
- if (allocation.negotiatedSsrc != null && !Objects.equals(allocation.negotiatedSsrc, negotiatedSsrc)) return null;
|
|
|
- allocation.negotiatedSsrc = negotiatedSsrc;
|
|
|
- return snapshot;
|
|
|
- }) != null;
|
|
|
- }
|
|
|
-
|
|
|
/** Legacy negotiation happens before any stop receipt exists; create the original allocation
|
|
|
* from the typed handle and remember that its pool number was already returned by that path. */
|
|
|
public boolean recordNegotiatedSsrc(String nodeId, String stream, SSRCInfo original, String negotiatedSsrc,
|