Hi, all. I’m running a local install of Jitsi. I’ve been trying for over a week to hack the source to go directly to Presenter mode after sharing the screen (desktop sharing*) instead of going to the shared screen. I’ve hooked into _createDesktopTrack, _switchToScreenSharing, and even useVideoStream but can’t seem to make it work. I’ve even tried to just fake a click with a muteVideo after _createDesktopTrack and had no luck. Any ideas?
1 Like
For future generations to mock, here was my super-hacky way of doing this:
*** jitsi-meet-4025/conference.js 2020-05-12 10:25:13.346388776 +0000
--- jitsi-meet-4025.original/conference.js 2020-04-17 01:07:22.000000000 +0000
*************** export default {
*** 1835,1848 ****
await this.useAudioStream(this._desktopAudioStream);
}
}
-
- try {
- logger.log('Applying Presenter effect.');
- await desktopVideoStream.setEffect(await this._createPresenterStreamEffect());
- }
- catch (err) {
- logger.error('Applying Presenter effect failed.', err);
- }
})
.then(() => {
this.videoSwitchInProgress = false;