enableVirtualBackground function

void enableVirtualBackground(
  1. NEPreviewRoomRtcController? previewRoomRtcController,
  2. bool enable,
  3. String path
)

Implementation

void enableVirtualBackground(
    NEPreviewRoomRtcController? previewRoomRtcController,
    bool enable,
    String path) async {
  await previewRoomRtcController?.enableVirtualBackground(
      enable,
      NERoomVirtualBackgroundSource(
          backgroundSourceType: NERoomVirtualBackgroundType.kBackgroundImg,
          source: path,
          color: 0,
          blurDegree: NERoomVirtualBackgroundType.kBlurDegreeHigh));
}