ソースを参照

[React Native] Disable audio levels

The audio levels are gathered by lib-jitsi-meet via polling of
RTCPeerConnection.getStats() which is very slow on Android. Since the
mobile app makes no use of audio levels, it is easiest to disable them
for now in order to not penalize the app.
master
Lyubomir Marinov 9年前
コミット
6eb767ba11
1個のファイルの変更14行の追加7行の削除
  1. 14
    7
      react/features/base/lib-jitsi-meet/reducer.js

+ 14
- 7
react/features/base/lib-jitsi-meet/reducer.js ファイルの表示

17
  */
17
  */
18
 const INITIAL_STATE = {
18
 const INITIAL_STATE = {
19
     config: {
19
     config: {
20
-        // FIXME Lib-jitsi-meet uses HTML script elements to asynchronously
21
-        // load certain pieces of JavaScript. Unfortunately, the technique
22
-        // doesn't work on React Native (because there are no HTML elements
23
-        // in the first place). Fortunately, these pieces of JavaScript
24
-        // currently involve third parties and we can temporarily disable
25
-        // them (until we implement an alternative to async script elements
26
-        // on React Native).
20
+        // FIXME The support for audio levels in lib-jitsi-meet polls the
21
+        // statistics of WebRTC at a short interval multiple times a second.
22
+        // Unfortunately, React Native is slow to fetch these statistics from
23
+        // the native WebRTC API, through the React Native bridge and eventually
24
+        // to JavaScript. Because the audio levels are of no interest to the
25
+        // mobile app, it is fastest to merely disable them.
26
+        disableAudioLevels: true,
27
+
28
+        // FIXME Lib-jitsi-meet uses HTML script elements to asynchronously load
29
+        // certain pieces of JavaScript. Unfortunately, the technique doesn't
30
+        // work on React Native (because there are no HTML elements in the first
31
+        // place). Fortunately, these pieces of JavaScript currently involve
32
+        // third parties and we can temporarily disable them (until we implement
33
+        // an alternative to async script elements on React Native).
27
         disableThirdPartyRequests: true
34
         disableThirdPartyRequests: true
28
     },
35
     },
29
     initializationError: null,
36
     initializationError: null,

読み込み中…
キャンセル
保存