[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.
This commit is contained in:
parent
c4d0340956
commit
6eb767ba11
|
@ -17,13 +17,20 @@ import {
|
||||||
*/
|
*/
|
||||||
const INITIAL_STATE = {
|
const INITIAL_STATE = {
|
||||||
config: {
|
config: {
|
||||||
// FIXME Lib-jitsi-meet uses HTML script elements to asynchronously
|
// FIXME The support for audio levels in lib-jitsi-meet polls the
|
||||||
// load certain pieces of JavaScript. Unfortunately, the technique
|
// statistics of WebRTC at a short interval multiple times a second.
|
||||||
// doesn't work on React Native (because there are no HTML elements
|
// Unfortunately, React Native is slow to fetch these statistics from
|
||||||
// in the first place). Fortunately, these pieces of JavaScript
|
// the native WebRTC API, through the React Native bridge and eventually
|
||||||
// currently involve third parties and we can temporarily disable
|
// to JavaScript. Because the audio levels are of no interest to the
|
||||||
// them (until we implement an alternative to async script elements
|
// mobile app, it is fastest to merely disable them.
|
||||||
// on React Native).
|
disableAudioLevels: true,
|
||||||
|
|
||||||
|
// FIXME Lib-jitsi-meet uses HTML script elements to asynchronously load
|
||||||
|
// certain pieces of JavaScript. Unfortunately, the technique doesn't
|
||||||
|
// work on React Native (because there are no HTML elements in the first
|
||||||
|
// place). Fortunately, these pieces of JavaScript currently involve
|
||||||
|
// third parties and we can temporarily disable them (until we implement
|
||||||
|
// an alternative to async script elements on React Native).
|
||||||
disableThirdPartyRequests: true
|
disableThirdPartyRequests: true
|
||||||
},
|
},
|
||||||
initializationError: null,
|
initializationError: null,
|
||||||
|
|
Loading…
Reference in New Issue