|
@@ -1,3 +1,4 @@
|
|
1
|
+import _ from 'lodash';
|
1
|
2
|
import { JitsiConferenceEvents } from '../lib-jitsi-meet';
|
2
|
3
|
import { setVideoMuted } from '../media';
|
3
|
4
|
import {
|
|
@@ -255,22 +256,20 @@ export function createConference() {
|
255
|
256
|
dispatch(_conferenceWillJoin(room));
|
256
|
257
|
|
257
|
258
|
const config = state['features/base/config'];
|
|
259
|
+ const configOverride = {
|
|
260
|
+ p2p: {
|
|
261
|
+ preferH264: true
|
|
262
|
+ }
|
|
263
|
+ };
|
258
|
264
|
const conference
|
259
|
265
|
= connection.initJitsiConference(
|
260
|
266
|
|
261
|
267
|
// XXX Lib-jitsi-meet does not accept uppercase letters.
|
262
|
268
|
room.toLowerCase(),
|
263
|
|
- {
|
264
|
|
- ...config,
|
265
|
|
-
|
266
|
|
- openSctp: true
|
267
|
269
|
|
268
|
|
- // FIXME I tested H.264 from iPhone 6S during a morning
|
269
|
|
- // standup but, unfortunately, the other participants who
|
270
|
|
- // happened to be running the Web app saw only black.
|
271
|
|
- //
|
272
|
|
- // preferH264: true
|
273
|
|
- });
|
|
270
|
+ // We use lodash's merge here because it will recursively merge
|
|
271
|
+ // objects allowing partial overrides.
|
|
272
|
+ _.merge({}, config, configOverride));
|
274
|
273
|
|
275
|
274
|
_addConferenceListeners(conference, dispatch);
|
276
|
275
|
|