diff --git a/conn.go b/conn.go index fe46c30..de559e4 100644 --- a/conn.go +++ b/conn.go @@ -29,8 +29,6 @@ type upTrack interface { Codec() *webrtc.RTPCodec // get a recent packet. Returns 0 if the packet is not in cache. getRTP(seqno uint16, result []byte) uint16 - // returns the last timestamp, if possible - getTimestamp() (uint32, bool) } type downConnection interface { diff --git a/rtpconn.go b/rtpconn.go index 0ab5061..8aef4f3 100644 --- a/rtpconn.go +++ b/rtpconn.go @@ -252,20 +252,6 @@ func (up *rtpUpTrack) getRTP(seqno uint16, result []byte) uint16 { return up.cache.Get(seqno, result) } -func (up *rtpUpTrack) getTimestamp() (uint32, bool) { - buf := make([]byte, packetcache.BufSize) - l := up.cache.GetLast(buf) - if l == 0 { - return 0, false - } - var packet rtp.Packet - err := packet.Unmarshal(buf) - if err != nil { - return 0, false - } - return packet.Timestamp, true -} - func (up *rtpUpTrack) Label() string { return up.label }