Some clean up (#505)
* WIP commit * Refactor NTP time * Clean up * Update lk protocol
This commit is contained in:
@@ -804,9 +804,9 @@ func (d *DownTrack) CreateSenderReport() *rtcp.SenderReport {
|
||||
}
|
||||
|
||||
now := time.Now()
|
||||
nowNTP := toNtpTime(now)
|
||||
nowNTP := buffer.ToNtpTime(now)
|
||||
|
||||
diff := (uint64(now.Sub(ntpTime(srNTP).Time())) * uint64(d.codec.ClockRate)) / uint64(time.Second)
|
||||
diff := (uint64(now.Sub(srNTP.Time())) * uint64(d.codec.ClockRate)) / uint64(time.Second)
|
||||
octets, packets := d.getSRStats()
|
||||
|
||||
return &rtcp.SenderReport{
|
||||
|
||||
Reference in New Issue
Block a user