瀏覽代碼

fix: s/supportsKSVCFor*/supportsSVC

dev0
Hristo Terezov 5 月之前
父節點
當前提交
e1f74330f6

+ 1
- 1
modules/RTC/TraceablePeerConnection.js 查看文件

@@ -2149,7 +2149,7 @@ TraceablePeerConnection.prototype._updateVideoSenderEncodings = function(frameHe
2149 2149
     // case they were set when the endpoint was encoding video using the other codecs before switching over to VP9
2150 2150
     // K-SVC codec.
2151 2151
     if (codec === CodecMimeType.VP9
2152
-        && browser.supportsKSVCForVP9()
2152
+        && browser.supportsSVC()
2153 2153
         && this.isSpatialScalabilityOn()
2154 2154
         && !this.tpcUtils.codecSettings[codec].scalabilityModeEnabled) {
2155 2155
         scaleFactors = scaleFactors.map(() => undefined);

+ 2
- 11
modules/browser/BrowserCapabilities.js 查看文件

@@ -245,15 +245,6 @@ export default class BrowserCapabilities extends BrowserDetection {
245 245
         return this.isChromiumBased() && this.isEngineVersionLessThan(112);
246 246
     }
247 247
 
248
-    /**
249
-     * Returns true if K-SVC is supported for AV1.
250
-     *
251
-     * @returns {boolean}
252
-     */
253
-    supportsKSVCForAV1() {
254
-        return !this.isFirefox();
255
-    }
256
-
257 248
     /**
258 249
      * Returns true if VP9 is supported by the client on the browser. VP9 is currently disabled on Safari
259 250
      * and older versions of Firefox because of issues. Please check https://bugs.webkit.org/show_bug.cgi?id=231074 for
@@ -267,11 +258,11 @@ export default class BrowserCapabilities extends BrowserDetection {
267 258
     }
268 259
 
269 260
     /**
270
-     * Returns true if K-SVC is supported for VP9.
261
+     * Returns true if SVC is supported.
271 262
      *
272 263
      * @returns {boolean}
273 264
      */
274
-    supportsKSVCForVP9() {
265
+    supportsSVC() {
275 266
         return !this.isFirefox();
276 267
     }
277 268
 

+ 4
- 4
service/RTC/StandardVideoQualitySettings.ts 查看文件

@@ -57,8 +57,8 @@ export const STANDARD_CODEC_SETTINGS = {
57 57
             none: 0
58 58
         },
59 59
         scalabilityModeEnabled: browser.supportsScalabilityModeAPI(),
60
-        useSimulcast: !browser.supportsKSVCForAV1(),
61
-        useKSVC: browser.supportsKSVCForAV1()
60
+        useSimulcast: !browser.supportsSVC(),
61
+        useKSVC: browser.supportsSVC()
62 62
     },
63 63
     h264: {
64 64
         maxBitratesVideo: {
@@ -95,8 +95,8 @@ export const STANDARD_CODEC_SETTINGS = {
95 95
             none: 0
96 96
         },
97 97
         scalabilityModeEnabled: browser.supportsScalabilityModeAPI(),
98
-        useSimulcast: !browser.supportsKSVCForVP9(),
99
-        useKSVC: browser.supportsKSVCForVP9()
98
+        useSimulcast: !browser.supportsSVC(),
99
+        useKSVC: browser.supportsSVC()
100 100
     }
101 101
 };
102 102
 

Loading…
取消
儲存