removeVirtualBackgroundItem has no effect

Zoom SDK Version: 1.11.10
Artifacts used:

  • us.zoom.videosdk:zoomvideosdk-core
  • us.zoom.videosdk:zoomvideosdk-videoeffects

Hi folks, I try to set a virtual background (blur) and then remove it using removeVirtualBackgroundItem, but this code seems to have no effect and blur is still there after calling it.

Setting the blur:

val blur = virtualBackgroundHelper
    .virtualBackgroundItemList
    .first { it.type == ZoomVideoSDKVirtualBackgroundDataType_Blur }
virtualBackgroundHelper.setVirtualBackgroundItem(blur)

Removing blur:

virtualBackgroundHelper.removeVirtualBackgroundItem(virtualBackgroundHelper.selectedVirtualBackgroundItem)

I also tried:

val blur = virtualBackgroundHelper
    .virtualBackgroundItemList
    .first { it.type == ZoomVideoSDKVirtualBackgroundDataType_Blur }
virtualBackgroundHelper.removeVirtualBackgroundItem(blur)

But none of them are working as expected. Eventually I went with something that looks a bit like a hack:

val noBackground = virtualBackgroundHelper
    .virtualBackgroundItemList
    .first { it.type == ZoomVideoSDKVirtualBackgroundDataType_None }
virtualBackgroundHelper.setVirtualBackgroundItem(noBackground)

This seems like a bug, but if it’s not please extend the documentation with intended usage of these methods.

Thanks :slight_smile:

I’ve also encountered this on 1.12.0

Is there a chance this will be picked up?