fix(video): determine svc/simulcast from SDP for advanced codecs (#3549)

* fix(video): determine svc/simulcast from SDP for advanced codecs

* fix(explicit-svc): cleanup

* fix(explicit-svc): remove from list on close/remove

* fix(explicit-svc): reorder VLS selection, cleanup

* fix(explicit-svc): todo comments for temporal layer selector

* fix(explicit-svc): remove from simulcastTrackIds even if client does not support unpublish
This commit is contained in:
Anunay Maheshwari
2025-03-26 16:22:32 +05:30
committed by GitHub
parent 2b6a46f402
commit 15f565510c
14 changed files with 168 additions and 216 deletions
+7 -1
View File
@@ -265,10 +265,16 @@ func NewWebRTCReceiver(
codecState: ReceiverCodecStateNormal,
kind: track.Kind(),
onRTCP: onRTCP,
isSVC: mime.IsMimeTypeStringSVC(track.Codec().MimeType),
isRED: mime.IsMimeTypeStringRED(track.Codec().MimeType),
}
isSVC := false
isSimulcast := trackInfo.GetSimulcast()
if !isSimulcast {
isSVC = mime.IsMimeTypeStringSVC(track.Codec().MimeType)
}
w.isSVC = isSVC
for _, opt := range opts {
w = opt(w)
}