Pārlūkot izejas kodu

fix(tpc) disable ulpfec on chrome 96 (#1816)

* fix(tpc) disable ulpfec on chrome 96

* ref(tpc) add comment
tags/v0.0.2
Jorge Oliveira 4 gadus atpakaļ
vecāks
revīzija
e9e37099a1
Revīzijas autora e-pasta adrese nav piesaistīta nevienam kontam

+ 7
- 0
modules/RTC/TraceablePeerConnection.js Parādīt failu

2824
                     .filter(caps => caps.mimeType.toLowerCase() !== `${MediaType.VIDEO}/${mimeType}`);
2824
                     .filter(caps => caps.mimeType.toLowerCase() !== `${MediaType.VIDEO}/${mimeType}`);
2825
             }
2825
             }
2826
 
2826
 
2827
+            // Disable ulpfec on Google Chrome 96 because
2828
+            // https://bugs.chromium.org/p/chromium/issues/detail?id=982793
2829
+            if (browser.isChromiumBased() && browser.isVersionEqualTo('96')) {
2830
+                capabilities = capabilities
2831
+                    .filter(caps => caps.mimeType.toLowerCase() !== `${MediaType.VIDEO}/${CodecMimeType.ULPFEC}`);
2832
+            }
2833
+
2827
             try {
2834
             try {
2828
                 transceiver.setCodecPreferences(capabilities);
2835
                 transceiver.setCodecPreferences(capabilities);
2829
             } catch (err) {
2836
             } catch (err) {

+ 6
- 1
service/RTC/CodecMimeType.js Parādīt failu

1
 /**
1
 /**
2
  * Enumeration of the codec mime types
2
  * Enumeration of the codec mime types
3
- * @type {{H264: string, OPUS: string, VP8: string, VP9: string}}
3
+ * @type {{H264: string, OPUS: string, ULPFEC: string, VP8: string, VP9: string}}
4
  */
4
  */
5
 const CodecMimeType = {
5
 const CodecMimeType = {
6
     /**
6
     /**
13
      */
13
      */
14
     OPUS: 'opus',
14
     OPUS: 'opus',
15
 
15
 
16
+    /**
17
+     * The ulpfec codec mime type.
18
+     */
19
+    ULPFEC: 'ulpfec',
20
+
16
     /**
21
     /**
17
      * The vp8 codec mime type.
22
      * The vp8 codec mime type.
18
      */
23
      */

Notiek ielāde…
Atcelt
Saglabāt