public interface Synchronizer
Modifier and Type | Method and Description |
---|---|
long |
getLocalTime(long ssrc,
long rtpTime)
Tries to find the local time (as returned by
System.currentTimeMillis()) that corresponds to the RTP
timestamp rtpTime for the SSRC ssrc.
|
void |
mapLocalToNtp(long ssrc,
long localTime,
double ntpTime)
Notifies this Synchronizer that the local timestamp
localTime corresponds to the NTP timestamp ntpTime
(for SSRC ssrc).
|
void |
mapRtpToNtp(long ssrc,
long rtpTime,
double ntpTime)
Notifies this Synchronizer that the RTP timestamp
rtpTime (for SSRC ssrc) corresponds to the
NTP timestamp ntpTime.
|
void |
setEndpoint(long ssrc,
java.lang.String endpointId)
Sets the endpoint identifier for a specific SSRC.
|
void |
setRtpClockRate(long ssrc,
long clockRate)
Sets the clock rate of the RTP clock for a specific SSRC.
|
void setRtpClockRate(long ssrc, long clockRate)
ssrc
- the SSRC for which to set the RTP clock rate.clockRate
- the clock rate.void setEndpoint(long ssrc, java.lang.String endpointId)
ssrc
- the SSRC for which to set the endpoint identifier.endpointId
- the endpoint identifier to set.void mapRtpToNtp(long ssrc, long rtpTime, double ntpTime)
ssrc
- the SSRC.rtpTime
- the RTP timestamp which corresponds to ntpTime.ntpTime
- the NTP timestamp which corresponds to rtpTime.void mapLocalToNtp(long ssrc, long localTime, double ntpTime)
ssrc
- the SSRC.localTime
- the local timestamp which corresponds to ntpTime.ntpTime
- the NTP timestamp which corresponds to localTime.long getLocalTime(long ssrc, long rtpTime)
ssrc
- the SSRC with which rtpTime is associated.rtpTime
- the RTP timestamp
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.