webrtc config electron
init on LoggedInView mounting configurable via UserSettings new class: CallMediaHandler Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
parent
0e880f7971
commit
c6262d62a6
3 changed files with 145 additions and 1 deletions
|
@ -21,6 +21,7 @@ import React from 'react';
|
|||
import KeyCode from '../../KeyCode';
|
||||
import Notifier from '../../Notifier';
|
||||
import PageTypes from '../../PageTypes';
|
||||
import CallMediaHandler from '../../CallMediaHandler';
|
||||
import sdk from '../../index';
|
||||
import dis from '../../dispatcher';
|
||||
|
||||
|
@ -71,6 +72,10 @@ export default React.createClass({
|
|||
// RoomView.getScrollState()
|
||||
this._scrollStateMap = {};
|
||||
|
||||
// Only run these in electron, at least until a better mechanism for perms exists
|
||||
// https://w3c.github.io/permissions/#dom-permissionname-device-info
|
||||
if (window && window.process && window.process.type) CallMediaHandler.loadDevices();
|
||||
|
||||
document.addEventListener('keydown', this._onKeyDown);
|
||||
},
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue