Просмотр исходного кода

[RN] Add support for callstats on mobile

The global.performance.now polyfill is removed since it's polyfilled by
react-native-callstats.
master
Saúl Ibarra Corretgé 8 лет назад
Родитель
Сommit
8eebfcad72

+ 1
- 0
package.json Просмотреть файл

56
     "react-i18next": "4.8.0",
56
     "react-i18next": "4.8.0",
57
     "react-native": "0.42.3",
57
     "react-native": "0.42.3",
58
     "react-native-background-timer": "1.2.0",
58
     "react-native-background-timer": "1.2.0",
59
+    "react-native-callstats": "3.23.0",
59
     "react-native-fetch-blob": "0.10.8",
60
     "react-native-fetch-blob": "0.10.8",
60
     "react-native-img-cache": "1.4.0",
61
     "react-native-img-cache": "1.4.0",
61
     "react-native-immersive": "1.0.0",
62
     "react-native-immersive": "1.0.0",

+ 0
- 8
react/features/base/config/reducer.js Просмотреть файл

37
     // fastest to merely disable them.
37
     // fastest to merely disable them.
38
     disableAudioLevels: true,
38
     disableAudioLevels: true,
39
 
39
 
40
-    // FIXME Lib-jitsi-meet uses HTML script elements to asynchronously load
41
-    // certain pieces of JavaScript. Unfortunately, the technique doesn't work
42
-    // on React Native (because there are no HTML elements in the first place).
43
-    // Fortunately, these pieces of JavaScript currently involve third parties
44
-    // and we can temporarily disable them (until we implement an alternative to
45
-    // async script elements on React Native).
46
-    disableThirdPartyRequests: true,
47
-
48
     p2p: {
40
     p2p: {
49
         preferH264: true
41
         preferH264: true
50
     }
42
     }

+ 1
- 9
react/features/base/lib-jitsi-meet/native/polyfills-browser.js Просмотреть файл

313
         })();
313
         })();
314
     }
314
     }
315
 
315
 
316
-    // performance
317
-    if (typeof global.performance === 'undefined') {
318
-        global.performance = {
319
-            now() {
320
-                return 0;
321
-            }
322
-        };
323
-    }
324
-
325
     // sessionStorage
316
     // sessionStorage
326
     //
317
     //
327
     // Required by:
318
     // Required by:
339
 
330
 
340
     // WebRTC
331
     // WebRTC
341
     require('./polyfills-webrtc');
332
     require('./polyfills-webrtc');
333
+    require('react-native-callstats/csio-polyfill');
342
 
334
 
343
     // XMLHttpRequest
335
     // XMLHttpRequest
344
     if (global.XMLHttpRequest) {
336
     if (global.XMLHttpRequest) {

Загрузка…
Отмена
Сохранить