Skip to content

Commit

Permalink
fix: Screen sharing in Jitsi (#1486)
Browse files Browse the repository at this point in the history
  • Loading branch information
tassoevan authored Jan 30, 2020
1 parent 145c04d commit d7d463a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/preload/jitsi.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
import url from 'url';
import util from 'util';

import { desktopCapturer, remote } from 'electron';

Expand All @@ -8,11 +7,10 @@ import { getSettings } from './rocketChat';
const { app } = remote;


const getScreenSources = util.promisify(desktopCapturer.getSources.bind(desktopCapturer));
const JitsiMeetElectron = {
async obtainDesktopStreams(callback, errorCallback, options = {}) {
try {
callback(await getScreenSources(options));
callback(await desktopCapturer.getSources(options));
} catch (error) {
errorCallback(error);
}
Expand Down

0 comments on commit d7d463a

Please sign in to comment.