rtp时间戳计算修改

This commit is contained in:
langhuihui
2021-07-22 21:12:14 +08:00
parent a459993df4
commit 155a6b608a
3 changed files with 18 additions and 8 deletions

View File

@@ -95,7 +95,6 @@ func (s *Subscriber) Play(at *AudioTrack, vt *VideoTrack) {
case <-streamExit:
return
default:
utils.Println(vp.Timestamp, ap.Timestamp, ap.Timestamp > vp.Timestamp)
if ap.Timestamp > vp.Timestamp || ap.Timestamp == 0 {
s.OnVideo(vp.Copy(vst))
vr.MoveNext()