MCPcopy Create free account
hub / github.com/Monibuca/engine / nextRTPFrame

Method nextRTPFrame

track/rtp.go:85–93  ·  view source on GitHub ↗

获取缓存中下一个rtpFrame

()

Source from the content-addressed store, hash-verified

83
84// 获取缓存中下一个rtpFrame
85func (av *RTPDemuxer) nextRTPFrame() (frame *LIRTP) {
86 frame = av.乱序重排.Pop()
87 if frame == nil {
88 return
89 }
90 av.lastSeq2 = av.lastSeq
91 av.lastSeq = frame.Value.SequenceNumber
92 return
93}
94
95// 对RTP包乱序重排
96func (av *RTPDemuxer) recorderRTP(item *LIRTP) (frame *LIRTP) {

Callers 1

WriteRTPMethod · 0.80

Calls 1

PopMethod · 0.80

Tested by

no test coverage detected