Skip to content

Commit

Permalink
Merge pull request bigbluebutton#15592 from JoVictorNunes/missing-cus…
Browse files Browse the repository at this point in the history
…tom-bg-param

fix: add missing custom virtual background param
  • Loading branch information
prlanzarin authored Aug 25, 2022
2 parents b812d03 + 54b146e commit b43b31d
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -354,13 +354,13 @@ class VideoPreview extends Component {
};

// Resolves into true if the background switch is successful, false otherwise
handleVirtualBgSelected(type, name) {
handleVirtualBgSelected(type, name, customParams) {
const { sharedDevices } = this.props;
const { webcamDeviceId } = this.state;
const shared = sharedDevices.includes(webcamDeviceId);

if (type !== EFFECT_TYPES.NONE_TYPE) {
return this.startVirtualBackground(this.currentVideoStream, type, name).then((switched) => {
return this.startVirtualBackground(this.currentVideoStream, type, name, customParams).then((switched) => {
// If it's not shared we don't have to update here because
// it will be updated in the handleStartSharing method.
if (switched && shared) this.updateVirtualBackgroundInfo();
Expand Down

0 comments on commit b43b31d

Please sign in to comment.