WebScreenShareFixes: only apply stereo parameter to video audio (#3474)

This commit is contained in:
Cookie 2025-06-08 11:47:59 -04:00 committed by GitHub
parent bf68a8a3e8
commit a386736dcc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -25,8 +25,8 @@ export default definePlugin({
replace: ";b=AS:800000;level-asymmetry-allowed=1"
},
{
match: "useinbandfec=1",
replace: "useinbandfec=1;stereo=1;sprop-stereo=1"
match: /;usedtx=".concat\((\i)\?"0":"1"\)/,
replace: '$&.concat($1?";stereo=1;sprop-stereo=1":"")'
}
]
}