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:
+7
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user