6#ifndef ZRC_IVIRTUALBACKGROUNDHELPER_H
7#define ZRC_IVIRTUALBACKGROUNDHELPER_H
VBResourceType
Virtual background resource type. Here are more detailed structural descriptions.
@ RESOURCE_TYPE_VIDEO
Indicates a video virtual background.
@ RESOURCE_TYPE_IMAGE
Indicates a image virtual background.
ZRCSDKError
SDK error types. Here are more detailed structural descriptions.
Virtual background helper interface.
virtual ZRCSDKError RedetectVirtualBackground()=0
Redetect virtual background.
virtual ZRCSDKError NotifyZRRefreshVirtualBackgroundListInMeeting()=0
Notify ZR that controller opens virtual background view to trigger list update when in meeting.
virtual ~IVirtualBackgroundHelper()
virtual ZRCSDKError RegisterSink(IVirtualBackgroundHelperSink *pSink)=0
Register virtual background helper callback sink.
virtual ZRCSDKError DownloadVirtualBackgroundImage(std::string imgUrl, std::string localFilePath)=0
Download virtual background image.
virtual ZRCSDKError DeregisterSink(IVirtualBackgroundHelperSink *pSink)=0
Deregister virtual background callback sink.
virtual ZRCSDKError SelectVirtualBackground(const std::string &vbID)=0
Select virtual background.
virtual ZRCSDKError PreviewVirtualBackground(bool start)=0
Start preview virtual background in pre-meeting.
Virtual background helper event callback.
virtual void OnUpdateEnableGreenScreen(bool isEnableGreenScreen)=0
Virtual background enable green screen algorithm update notification.
virtual void OnDownloadingFinished(const std::string &localFilePath, uint32_t result)=0
Download result.
virtual void OnUpdateSelectedVirtualBackground(const std::string &selectedVBID)=0
Selected virtual background update notification.
virtual void OnUpdateIsImmersiveCutOut(bool isImmersiveCutOut)=0
In immersive cutout mode notification.
virtual void OnUpdateDetectVirtualBackgroundResult(int32_t result)=0
Detecting virtual background result notification.
virtual void OnUpdateVirtualBackgroundOptions(const VirtualBackgroundOptions &options)=0
Virtual background options update notification.
virtual void OnUpdateVirtualBackgroundList(const std::vector< VirtualBackgroundItem > &vbList)=0
Virtual background list update notification.
virtual ~IVirtualBackgroundHelperSink()
virtual void OnUpdateIsDetectingVirtualBackground(bool isDetecting)=0
Detecting virtual background notification.
std::string bigImageURL
Big image url.
bool isDownloadedOnZR
TRUE indicates this item is downloaded on ZR and can be selected.
std::string id
ID. Special cases: 1. Empty string "" for NONE; 2."zr_virtual_background_blur_id" for Blur....
std::string downloadFileId
If downloadFileId not empty, use downloadFileId to download the virtual background resource.
VBResourceType resourceType
See enum VBResourceType.
std::string smallImageURL
Small image url.
Virtual background options.
bool isSupportSmartVirtualBackground
TRUE indicates ZR supports smart vb algorithm.
bool isSettingLockedOnWeb
TRUE indicates virtual background setting is locked by web option. Local config is disabled.
bool isForceEnabledOnWeb
TRUE indicates virtual background is force enabled by web option. SelectVirtualBackground with ID "" ...
bool isSupportBlurVirtualBackground
TRUE indicates ZR supports blur algorithm. You can switch to blur by SelectVirtualBackground with ID ...
bool isVirtualBackgroundFeatureOn
TRUE indicates virtual background feature is available.
bool isSupportGreenScreenVirtualBackground
TRUE indicates ZR supports green screen algorithm.