daily-co / daily-js

https://docs.daily.co/reference/daily-js
BSD 2-Clause "Simplified" License
103 stars 33 forks source link

BUG - Joining a call with background-blur enabled shows a black screen camera on v0.40 and above #215

Closed carloscheddar closed 11 months ago

carloscheddar commented 1 year ago

Expected behavior

Joining the call should keep the camera showing with the background-blur as seen on the Lobby.

Describe the bug (unexpected behavior)

When calling .join() with background-blur enabled the camera shows a black screen instead of video.

Steps to reproduce

  1. Enable background-blur after initializing the call object
  2. Join the call with blur enabled
  3. See a black screen instead of yourself with no errors on the console

Screenshots

Screenshot 2023-03-23 at 4 32 02 PM

System information

* Device: Macbook Pro 14" * OS, version: Mac OS, 13.2 * Browser, version: Chrome, latest # Additional context Versions of Daily.js up to `0.38` work as expected. Using the new inputSettings via callObject or join properties does not fix the issue.
mattieruth commented 1 year ago

We have not been able to reproduce the issue. We tried the following:

let call = DailyIframe.createCallObject({
    dailyConfig: {
        experimentalChromeVideoMuteLightOff: true,
    },
});
call.startCamera();
call.updateInputSettings({ video: {processor: {type: 'background-blur'}});
call.join({url: <>});

on both 0.40. and 0.41 both with calling startCamera() and without calling it. On 0.40, we see a bug where the background blur does not apply. This is resolved in 0.41.0. But we have not been able to reproduce a black video. Is there another setting or call we should try?

Agular commented 1 year ago

Hi, we had a case with the blackscreen too, but not due to background blur, but probably because of ISP network configuration. We had to change sfu_switchover to 0.5 to avoid P2P connections which solved the black screen for us. https://docs.daily.co/reference/rest-api/rooms/create-room#sfu_switchover Cheers.