jitsi-meet/react/features/base/settings/functions.native.js
Saúl Ibarra Corretgé 6d16e087d9 rn: add a new advanced settings section
Currently only 2 options are implemented, mainly aimed at helping troubleshoot
audio related problems:

- Disable native call integration (it disables CallKit / ConnectionService)
- Disable P2P
2019-10-31 16:41:08 +01:00

22 lines
614 B
JavaScript

// @flow
import { NativeModules } from 'react-native';
export * from './functions.any';
const { AudioMode } = NativeModules;
/**
* Handles changes to the `disableCallIntegration` setting.
* On Android (where `AudioMode.setUseConnectionService` is defined) we must update
* the native side too, since audio routing works differently.
*
* @param {boolean} disabled - Whether call integration is disabled or not.
* @returns {void}
*/
export function handleCallIntegrationChange(disabled: boolean) {
if (AudioMode.setUseConnectionService) {
AudioMode.setUseConnectionService(!disabled);
}
}