mirror of
https://github.com/livekit/livekit.git
synced 2026-10-15 09:00:14 +00:00
Fix svc encoding for chrome mobile on iOS (#3751)
The browser could send rtp packets of svc encoding without DD extension while the sdp negotiates it, sfu detects extension in rtp packet for this case.
This commit is contained in:
@@ -890,8 +890,8 @@ func (b *Buffer) getExtPacket(rtpPacket *rtp.Packet, arrivalTime int64, flowStat
|
||||
ddVal, videoLayer, err := b.ddParser.Parse(ep.Packet)
|
||||
if err != nil {
|
||||
if errors.Is(err, ErrDDExtentionNotFound) {
|
||||
if b.mime == mime.MimeTypeVP8 {
|
||||
b.logger.Infow("dd extension not found for vp8 packet, disable dd parser")
|
||||
if b.mime == mime.MimeTypeVP8 || b.mime == mime.MimeTypeVP9 {
|
||||
b.logger.Infow("dd extension not found, disable dd parser")
|
||||
b.ddParser = nil
|
||||
b.createFrameRateCalculator()
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user