simulcast codecs support (#720)

simulcast codecs support 

Co-authored-by: David Zhao <dz@livekit.io>
This commit is contained in:
cnderrauber
2022-05-27 19:55:50 +08:00
committed by GitHub
co-authored by David Zhao
parent 3054f3eea3
commit f958fbcc1c
30 changed files with 1098 additions and 574 deletions
+1 -1
View File
@@ -479,12 +479,12 @@ func (b *Buffer) getExtPacket(rawPacket []byte, rtpPacket *rtp.Packet, arrivalTi
}
case "video/h264":
ep.KeyFrame = IsH264Keyframe(rtpPacket.Payload)
case "video/vp9":
ep.KeyFrame = IsVp9Keyframe(rtpPacket.Payload)
case "video/av1":
ep.KeyFrame = IsAV1Keyframe(rtpPacket.Payload)
}
if ep.KeyFrame {
if b.rtpStats != nil {
b.rtpStats.UpdateKeyFrame(1)