@@ -20,7 +20,6 @@ import org.jitsi.nlj.rtp.bandwidthestimation.BandwidthEstimator
2020import org.jitsi.nlj.util.Bandwidth
2121import org.jitsi.nlj.util.BitrateTracker
2222import org.jitsi.nlj.util.bytes
23- import org.jitsi.rtp.extensions.unsigned.toPositiveLong
2423import org.jitsi.utils.concurrent.PeriodicRunnable
2524import org.jitsi.utils.logging.DiagnosticContext
2625import org.jitsi.utils.logging.TimeSeriesLogger
@@ -30,26 +29,13 @@ import org.jitsi.videobridge.cc.allocation.BitrateControllerStatusSnapshot
3029import org.jitsi.videobridge.cc.config.BandwidthProbingConfig.Companion.config
3130import org.json.simple.JSONObject
3231import java.util.function.Supplier
33- import kotlin.random.Random
3432
3533class BandwidthProbing (
3634 private val probingDataSender : ProbingDataSender ,
3735 private val statusSnapshotSupplier : Supplier <BitrateControllerStatusSnapshot >
3836) : PeriodicRunnable(config.paddingPeriodMs), BandwidthEstimator.Listener {
3937
40- /* *
41- * The sequence number to use if probing with the JVB's SSRC.
42- */
43- private val seqNum = Random .nextInt(0xFFFF )
44-
45- /* *
46- * The RTP timestamp to use if probing with the JVB's SSRC.
47- */
48- private val ts: Long = Random .nextInt().toPositiveLong()
49-
50- /* *
51- * Whether or not probing is currently enabled
52- */
38+ /* * Whether or not probing is currently enabled */
5339 var enabled = false
5440
5541 private var lastTotalNeededBps = 0L
@@ -147,8 +133,6 @@ class BandwidthProbing(
147133 }
148134
149135 fun getDebugState (): JSONObject = JSONObject ().apply {
150- put(" seqNum" , seqNum)
151- put(" ts" , ts)
152136 put(" enabled" , enabled)
153137 put(" latestBwe" , latestBwe)
154138 put(" lastTotalNeededBps" , lastTotalNeededBps)
0 commit comments