Zoom Rooms Controller SDK Reference 6.5.0
Loading...
Searching...
No Matches
IVirtualBackgroundHelper.h
Go to the documentation of this file.
1
6#ifndef ZRC_IVIRTUALBACKGROUNDHELPER_H
7#define ZRC_IVIRTUALBACKGROUNDHELPER_H
8
9#include "ZRCSDKTypes.h"
10
12
18{
21};
22
26{
27 std::string id;
28 std::string name;
29 std::string bigImageURL;
30 std::string smallImageURL;
33 std::string downloadFileId;
34};
35
39{
44 bool isSettingLockedOnWeb = false;
45 bool isForceEnabledOnWeb = false;
46};
47
51{
52public:
54
64
73 virtual void OnUpdateVirtualBackgroundList(const std::vector<VirtualBackgroundItem>& vbList) = 0;
74
83 virtual void OnUpdateSelectedVirtualBackground(const std::string& selectedVBID) = 0;
84
93 virtual void OnUpdateEnableGreenScreen(bool isEnableGreenScreen) = 0;
94
103 virtual void OnUpdateIsImmersiveCutOut(bool isImmersiveCutOut) = 0;
104
113 virtual void OnUpdateIsDetectingVirtualBackground(bool isDetecting) = 0;
114
123 virtual void OnUpdateDetectVirtualBackgroundResult(int32_t result) = 0;
124
134 virtual void OnDownloadingFinished(const std::string& localFilePath, uint32_t result) = 0;
135};
136
140{
141public:
143
155
167
178 virtual ZRCSDKError PreviewVirtualBackground(bool start) = 0;
179
190 virtual ZRCSDKError SelectVirtualBackground(const std::string& vbID) = 0;
191
202
214 virtual ZRCSDKError DownloadVirtualBackgroundImage(std::string imgUrl, std::string localFilePath) = 0;
215
226};
227
229
230#endif //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.
#define NS_ZRCSDK_END
#define NS_ZRCSDK_BEG
ZRC SDK Types.
ZRCSDKError
SDK error types. Here are more detailed structural descriptions.
Definition ZRCSDKTypes.h:22
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 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 void OnUpdateIsDetectingVirtualBackground(bool isDetecting)=0
Detecting virtual background notification.
Virtual background item.
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.