Send PLI when target client doesn't have keyframes

This commit is contained in:
David Zhao
2020-12-17 22:28:03 -08:00
parent 2111513fde
commit 050da05000
5 changed files with 24 additions and 7 deletions
+3 -2
View File
@@ -229,8 +229,9 @@ func (d *DownTrack) writeSimpleRTP(pkt rtp.Packet) error {
}
}
if !relay {
// TODO: how do we sent PLI to the source?
//return ErrRequiresKeyFrame
// when we are writing to a new client and there isn't a keyframe, it makes it impossible
// for clients to render a frame. we'll send an error for the track writer.
return ErrRequiresKeyFrame
}
}
d.snOffset = pkt.SequenceNumber - d.lastSN - 1