mirror of https://github.com/jitsi/jitsi-meet
parent
1a339100ab
commit
919be21912
@ -0,0 +1,21 @@ |
||||
// @flow
|
||||
|
||||
import { toState } from '../base/redux'; |
||||
|
||||
/** |
||||
* Checks whether rtcstats is enabled or not. |
||||
* |
||||
* @param {Function|Object} stateful - The redux store or {@code getState} function. |
||||
* @returns {boolean} |
||||
*/ |
||||
export function isRtcstatsEnabled(stateful: Function | Object) { |
||||
// TODO: Remove when rtcstats is fully cimpatible with mobile.
|
||||
if (navigator.product === 'ReactNative') { |
||||
return false; |
||||
} |
||||
|
||||
const state = toState(stateful); |
||||
const config = state['features/base/config']; |
||||
|
||||
return config?.analytics?.rtcstatsEnabled ?? false; |
||||
} |
Loading…
Reference in new issue