Skip to content

Commit

Permalink
Merge pull request jitsi#112 from saaltech/neehal/fixes
Browse files Browse the repository at this point in the history
Presenter mode implementation
  • Loading branch information
neehalsaal committed Jul 21, 2020
2 parents 1029628 + 6b14e4f commit e797528
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions conference.js
Original file line number Diff line number Diff line change
Expand Up @@ -1954,13 +1954,19 @@ export default {

this.videoSwitchInProgress = true;

const isVideoTrackMutedBeforeSharing = this.isLocalVideoMuted();

return this._createDesktopTrack(options)
.then(async streams => {
const desktopVideoStream = streams.find(stream => stream.getType() === MEDIA_TYPE.VIDEO);

if (desktopVideoStream) {
await this.useVideoStream(desktopVideoStream);
}

if(!isVideoTrackMutedBeforeSharing && this.isLocalVideoMuted()) {
this.muteVideo(false)
}

this._desktopAudioStream = streams.find(stream => stream.getType() === MEDIA_TYPE.AUDIO);

Expand Down

0 comments on commit e797528

Please sign in to comment.