[Android] Add module that provides getWiFiStats
This commit is contained in:
committed by
Saúl Ibarra Corretgé
parent
ceeefb33c1
commit
2f3ea1b458
@@ -19,6 +19,7 @@ import {
|
||||
participantUpdated
|
||||
} from '../participants';
|
||||
import { getLocalTracks, trackAdded, trackRemoved } from '../tracks';
|
||||
import { getJitsiMeetGlobalNS } from '../util';
|
||||
|
||||
import {
|
||||
CONFERENCE_FAILED,
|
||||
@@ -309,7 +310,8 @@ export function createConference() {
|
||||
// XXX Lib-jitsi-meet does not accept uppercase letters.
|
||||
room.toLowerCase(), {
|
||||
...state['features/base/config'],
|
||||
applicationName: getName()
|
||||
applicationName: getName(),
|
||||
getWiFiStatsMethod: getJitsiMeetGlobalNS().getWiFiStats
|
||||
});
|
||||
|
||||
conference[JITSI_CONFERENCE_URL_KEY] = locationURL;
|
||||
|
||||
9
react/features/base/lib-jitsi-meet/native/WiFiStats.js
Normal file
9
react/features/base/lib-jitsi-meet/native/WiFiStats.js
Normal file
@@ -0,0 +1,9 @@
|
||||
import { NativeModules } from 'react-native';
|
||||
import { getJitsiMeetGlobalNS } from '../../util';
|
||||
|
||||
/**
|
||||
* If WiFiStats native module exist attach it to JitsiMeetGlobalNS.
|
||||
*/
|
||||
if (NativeModules.WiFiStats) {
|
||||
getJitsiMeetGlobalNS().getWiFiStats = NativeModules.WiFiStats.getWiFiStats;
|
||||
}
|
||||
@@ -1,2 +1,3 @@
|
||||
import './polyfills-browser';
|
||||
import './polyfills-browserify';
|
||||
import './WiFiStats';
|
||||
|
||||
Reference in New Issue
Block a user