|
|
@@ -2,6 +2,7 @@
|
|
2
|
2
|
|
|
3
|
3
|
import _ from 'lodash';
|
|
4
|
4
|
|
|
|
5
|
+import Platform from '../react/Platform';
|
|
5
|
6
|
import { equals, ReducerRegistry, set } from '../redux';
|
|
6
|
7
|
|
|
7
|
8
|
import { CONFIG_WILL_LOAD, LOAD_CONFIG_ERROR, SET_CONFIG } from './actionTypes';
|
|
|
@@ -20,6 +21,15 @@ import { _cleanupConfig } from './functions';
|
|
20
|
21
|
const INITIAL_NON_RN_STATE = {
|
|
21
|
22
|
};
|
|
22
|
23
|
|
|
|
24
|
+/**
|
|
|
25
|
+ * When we should enable H.264 on mobile. iOS 10 crashes so we disable it there.
|
|
|
26
|
+ * See: https://bugs.chromium.org/p/webrtc/issues/detail?id=11002
|
|
|
27
|
+ * Note that this is only used for P2P calls.
|
|
|
28
|
+ *
|
|
|
29
|
+ * @type {boolean}
|
|
|
30
|
+ */
|
|
|
31
|
+const RN_ENABLE_H264 = navigator.product === 'ReactNative' && !(Platform.OS === 'ios' && Platform.Version === 10);
|
|
|
32
|
+
|
|
23
|
33
|
/**
|
|
24
|
34
|
* The initial state of the feature base/config when executing in a React Native
|
|
25
|
35
|
* environment. The mandatory configuration to be passed to JitsiMeetJS#init().
|
|
|
@@ -41,8 +51,8 @@ const INITIAL_RN_STATE = {
|
|
41
|
51
|
disableAudioLevels: true,
|
|
42
|
52
|
|
|
43
|
53
|
p2p: {
|
|
44
|
|
- disableH264: false,
|
|
45
|
|
- preferH264: true
|
|
|
54
|
+ disableH264: !RN_ENABLE_H264,
|
|
|
55
|
+ preferH264: RN_ENABLE_H264
|
|
46
|
56
|
}
|
|
47
|
57
|
};
|
|
48
|
58
|
|