Simulcast audio fixes (#3925)

* Simulcast audio fixes

* clean up
This commit is contained in:
Raja Subramanian
2025-09-14 09:41:40 +05:30
committed by GitHub
parent 9f0ab8706f
commit 6489237e33
11 changed files with 70 additions and 57 deletions
+3 -7
View File
@@ -320,11 +320,7 @@ func IsMimeTypeVideo(mimeType MimeType) bool {
return strings.HasPrefix(mimeType.String(), MimeTypePrefixVideo)
}
// SVC-TODO: Have to use more conditions to differentiate between
// SVC-TODO: SVC and non-SVC (could be single layer or simulcast).
// SVC-TODO: May only need to differentiate between simulcast and non-simulcast
// SVC-TODO: i. e. may be possible to treat single layer as SVC to get proper/intended functionality.
func IsMimeTypeSVC(mimeType MimeType) bool {
func IsMimeTypeSVCCapable(mimeType MimeType) bool {
switch mimeType {
case MimeTypeAV1, MimeTypeVP9:
return true
@@ -332,8 +328,8 @@ func IsMimeTypeSVC(mimeType MimeType) bool {
return false
}
func IsMimeTypeStringSVC(mime string) bool {
return IsMimeTypeSVC(NormalizeMimeType(mime))
func IsMimeTypeStringSVCCapable(mime string) bool {
return IsMimeTypeSVCCapable(NormalizeMimeType(mime))
}
func IsMimeTypeStringRED(mime string) bool {