org.lastbamboo.common.ice
Class IceTransactionDelayCalculator
java.lang.Object
org.lastbamboo.common.ice.IceTransactionDelayCalculator
public class IceTransactionDelayCalculator
- extends Object
Calculates the value for ICE Ta. The given formula for Ta is:
For each media stream i:
Ta_i = (stun_packet_size / rtp_packet_size) * rtp_ptime
1
Ta = MAX (20ms, ------------------- )
k
----
\ 1
> ------
/ Ta_i
----
i=1
|
Method Summary |
static int |
calculateDelay(int Ta_i,
int k)
Calculates the transaction delay for a single media stream. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
calculateDelay
public static int calculateDelay(int Ta_i,
int k)
- Calculates the transaction delay for a single media stream.
- Parameters:
Ta_i - The calculated transaction delay for the media stream in
question.k - The number of media streams.
- Returns:
- The delay to use.
Copyright © 2013 LittleShoot. All Rights Reserved.