Some clean up (#505)

* WIP commit

* Refactor NTP time

* Clean up

* Update lk protocol
This commit is contained in:
Raja Subramanian
2022-03-11 22:40:49 +05:30
committed by GitHub
parent a5fa54853f
commit 80bd45f061
10 changed files with 82 additions and 77 deletions
+2 -3
View File
@@ -35,11 +35,10 @@ type TrackReceiver interface {
Codec() webrtc.RTPCodecCapability
ReadRTP(buf []byte, layer uint8, sn uint16) (int, error)
GetSenderReportTime(layer int32) (rtpTS uint32, ntpTS uint64)
GetSenderReportTime(layer int32) (rtpTS uint32, ntpTS buffer.NtpTime)
GetBitrateTemporalCumulative() Bitrates
SendPLI(layer int32)
LastPLI() int64
SetUpTrackPaused(paused bool)
SetMaxExpectedSpatialLayer(layer int32)
@@ -424,7 +423,7 @@ func (w *WebRTCReceiver) SetRTCPCh(ch chan []rtcp.Packet) {
w.rtcpCh = ch
}
func (w *WebRTCReceiver) GetSenderReportTime(layer int32) (rtpTS uint32, ntpTS uint64) {
func (w *WebRTCReceiver) GetSenderReportTime(layer int32) (rtpTS uint32, ntpTS buffer.NtpTime) {
w.bufferMu.RLock()
defer w.bufferMu.RUnlock()
if w.buffers[layer] != nil {