A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
fix(voice): stop offering h264 to firefox on linux (#3122)
Hampusefe94ed09480
diff --git a/fluxer_app/src/features/voice/utils/CodecCapabilityDetector.ts b/fluxer_app/src/features/voice/utils/CodecCapabilityDetector.tsindex 0846c54b4..99aa131a6 100644--- a/fluxer_app/src/features/voice/utils/CodecCapabilityDetector.ts+++ b/fluxer_app/src/features/voice/utils/CodecCapabilityDetector.ts@@ -189,6 +189,13 @@ function getScreenShareCodecPolicyUnsupported(detail: 'Firefox doesn\u2019t support H.265 encoding for WebRTC.',};}+ if (context.firefox && context.platform === 'linux' && codec === 'h264') {+ return {+ supported: false,+ reason: 'unsupported-browser',+ detail: 'The voice server doesn\u2019t accept H.264 from Firefox on Linux or Android.',+ };+ }return null;}