Add vp9 svc support by Dependency Descriptor (#1586)
* Add VP9 SVC support * Fix preferred fps does not work * Fix forwarder test
This commit is contained in:
@@ -132,7 +132,7 @@ func (p *ParticipantImpl) setCodecPreferencesVideoForPublisher(offer webrtc.Sess
|
||||
|
||||
mime = strings.ToUpper(mime)
|
||||
// remove dd extension if av1 not preferred
|
||||
if !strings.Contains(mime, "AV1") {
|
||||
if !strings.Contains(mime, "AV1") && !strings.Contains(mime, "VP9") {
|
||||
for i, attr := range unmatchVideo.Attributes {
|
||||
if strings.Contains(attr.Value, dd.ExtensionUrl) {
|
||||
unmatchVideo.Attributes[i] = unmatchVideo.Attributes[len(unmatchVideo.Attributes)-1]
|
||||
|
||||
Reference in New Issue
Block a user