Selaa lähdekoodia

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 vuotta sitten
vanhempi
commit
e9e37099a1
No account linked to committer's email address
2 muutettua tiedostoa jossa 13 lisäystä ja 1 poistoa
  1. 7
    0
      modules/RTC/TraceablePeerConnection.js
  2. 6
    1
      service/RTC/CodecMimeType.js

+ 7
- 0
modules/RTC/TraceablePeerConnection.js Näytä tiedosto

@@ -2824,6 +2824,13 @@ TraceablePeerConnection.prototype._createOfferOrAnswer = function(
2824 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 2834
             try {
2828 2835
                 transceiver.setCodecPreferences(capabilities);
2829 2836
             } catch (err) {

+ 6
- 1
service/RTC/CodecMimeType.js Näytä tiedosto

@@ -1,6 +1,6 @@
1 1
 /**
2 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 5
 const CodecMimeType = {
6 6
     /**
@@ -13,6 +13,11 @@ const CodecMimeType = {
13 13
      */
14 14
     OPUS: 'opus',
15 15
 
16
+    /**
17
+     * The ulpfec codec mime type.
18
+     */
19
+    ULPFEC: 'ulpfec',
20
+
16 21
     /**
17 22
      * The vp8 codec mime type.
18 23
      */

Loading…
Peruuta
Tallenna