You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's some code without context in here but still, this seems to work OK:
letpublisherData={
resolution,audioSource: this.normalizeSource(config.audioSource),videoSource: this.normalizeSource(config.videoSource),name: id,showControls: false,frameRate: fps,insertDefaultUI: false,publishAudio: !isMuted,publishVideo: !isHidden,videoFilter: {type: 'backgroundBlur'// <-- Sending filter here}};letpub=OT.initPublisher(undefined,{
...publisherData},(error: OT.OTError)=>{console.error('There was an error while initializing the publisher',error);});this.publishers.set(id,pub);
Result:
While this doesn't:
letpublisherData={
resolution,audioSource: this.normalizeSource(config.audioSource),videoSource: this.normalizeSource(config.videoSource),name: id,showControls: false,frameRate: fps,insertDefaultUI: false,publishAudio: !isMuted,publishVideo: !isHidden,};letpub=OT.initPublisher(undefined,{
...publisherData},(error: OT.OTError)=>{console.error('There was an error while initializing the publisher',error);});pub.applyVideoFilter({// <-- Doing it here insteadtype: 'backgroundBlur'});this.publishers.set(id,pub);
There's some code without context in here but still, this seems to work OK:
Result:

While this doesn't:
Result:
