ZOOM Windows SDK  5.2.42037.1112
customized_video_container.h
Go to the documentation of this file.
1 
6 #ifndef _ZOOM_CUSTOMIZED_VIDEO_CONTAINER_H_
7 #define _ZOOM_CUSTOMIZED_VIDEO_CONTAINER_H_
8 #include "..\zoom_sdk_def.h"
9 
10 BEGIN_ZOOM_SDK_NAMESPACE
11 
17 {
22 };
23 
29 {
34 };
35 
39 {
40 public:
44  virtual VideoRenderElementType GetType() = 0;
45 
49  virtual RECT GetPos() = 0;
50 
54  virtual SDKError SetPos(RECT pos) = 0;
55 
58  virtual SDKError Show() = 0;
59 
62  virtual SDKError Hide() = 0;
63 
66  virtual unsigned int GetCurrentRenderUserId() = 0;
67 
71 
75  virtual SDKError EnableShowScreenNameOnVideo(bool enable_show) = 0;
76  virtual ~IVideoRenderElement(){}
77 };
78 
82 {
83 public:
86  virtual SDKError Start() = 0;
87 
90  virtual SDKError Stop() = 0;
91  virtual ~IPreviewVideoRenderElement(){}
92 };
93 
97 {
98 public:
101  virtual SDKError Start() = 0;
102 
105  virtual SDKError Stop() = 0;
106  virtual ~IActiveVideoRenderElement(){}
107 };
108 
112 {
113 public:
116  virtual SDKError Subscribe(unsigned int userid) = 0;
117 
122  virtual SDKError Unsubscribe(unsigned int userid) = 0;
123  virtual ~INormalVideoRenderElement(){}
124 };
125 
129 {
130 public:
134  virtual void onRenderUserChanged(IVideoRenderElement* pElement, unsigned int userid) = 0;
135 
139  virtual void onRenderDataTypeChanged(IVideoRenderElement* pElement, VideoRenderDataType dataType) = 0;
140 
144  virtual void onLayoutNotification(RECT wnd_client_rect) = 0;
145 
149  virtual void onVideoRenderElementDestroyed(IVideoRenderElement* pElement) = 0;
150 
160  virtual void onWindowMsgNotification(UINT uMsg, WPARAM wParam, LPARAM lParam) = 0;
161 
162  virtual void onSubscribeUserFail(int iErrorCode, IVideoRenderElement* pElement) = 0;
163 };
164 
168 {
169 public:
174  virtual SDKError SetEvent(ICustomizedVideoContainerEvent* pEvent) = 0;
175 
182 
187  virtual SDKError DestroyVideoElement(IVideoRenderElement* ppElement) = 0;
188 
192  virtual SDKError DestroyAllVideoElement() = 0;
193 
197  virtual SDKError Show() = 0;
198 
202  virtual SDKError Hide() = 0;
203 
208  virtual SDKError Resize(RECT rc) = 0;
209 
214 
215  virtual ~ICustomizedVideoContainer(){}
216 };
217 END_ZOOM_SDK_NAMESPACE
218 #endif
For initiation.
Definition: customized_video_container.h:30
virtual SDKError Show()=0
Show the render element.
Callback event of custom video container.
Definition: customized_video_container.h:128
virtual void onRenderDataTypeChanged(IVideoRenderElement *pElement, VideoRenderDataType dataType)=0
The callback will be triggered if the video render element corresponding to data type changes...
virtual void onWindowMsgNotification(UINT uMsg, WPARAM wParam, LPARAM lParam)=0
The SDK will pass the window messages to users via the callback. Here are the messages. WM_MOUSEMOVE WM_MOUSEENTER WM_MOUSELEAVE WM_LBUTTONDOWN WM_LBUTTONUP WM_RBUTTONUP WM_LBUTTONDBLCLK WM_KEYDOWN.
virtual SDKError Stop()=0
Hide the data of the current active user.
virtual void onRenderUserChanged(IVideoRenderElement *pElement, unsigned int userid)=0
The callback will be triggered if the video render element corresponding to the user changes...
Definition: zoom_sdk_def.h:288
Data type without video data.
Definition: customized_video_container.h:32
VideoRenderElementType
Type of the video render element. Here are more detailed structural descriptions. ...
Definition: customized_video_container.h:16
virtual void onLayoutNotification(RECT wnd_client_rect)=0
The callback will be triggered if the size of video container changes. The user should redeploy the v...
virtual SDKError DestroyVideoElement(IVideoRenderElement *ppElement)=0
Destroy a video render element.
The active video render element interface in the meeting.
Definition: customized_video_container.h:96
SDKError
SDK error types. Here are more detailed structural descriptions.
Definition: zoom_sdk_def.h:29
virtual SDKError Hide()=0
Hide the video container.
virtual RECT GetPos()=0
Get the area where the current render element is.
VideoRenderDataType
Data type of the video render element. Here are more detailed structural descriptions.
Definition: customized_video_container.h:28
virtual IList< IVideoRenderElement *> * GetVideoElementList()=0
Get the list of video render elements in the current container.
virtual SDKError SetEvent(ICustomizedVideoContainerEvent *pEvent)=0
Set video container callback event handler.
The base class for the video element interface.
Definition: customized_video_container.h:38
virtual SDKError Resize(RECT rc)=0
Resize the video container in the specified area.
virtual SDKError Start()=0
Start previewing.
For initiation.
Definition: customized_video_container.h:18
virtual VideoRenderDataType GetCurrentRenderDataType()=0
Get the data type of the current render element.
virtual SDKError Show()=0
Show the video container.
The interface to preview the video render element of the participant who joins the meeting before the...
Definition: customized_video_container.h:81
virtual SDKError DestroyAllVideoElement()=0
Destroy all the video render element.
Data type including the video data.
Definition: customized_video_container.h:31
virtual SDKError SetPos(RECT pos)=0
Specify a new display area of the current render element.
virtual void onVideoRenderElementDestroyed(IVideoRenderElement *pElement)=0
The callback will be triggered before the video render element is destroyed.
virtual SDKError Subscribe(unsigned int userid)=0
Show the data of the specified user through normal render mode.
Active type, see IActiveVideoRenderElement.
Definition: customized_video_container.h:20
virtual SDKError Unsubscribe(unsigned int userid)=0
Unsubscribe the data of the specified user.
virtual SDKError Hide()=0
Hide the render element.
virtual SDKError EnableShowScreenNameOnVideo(bool enable_show)=0
Set the visibility of the screen name on the current render element.
virtual SDKError Start()=0
Display the data of the current active user.
Data type of screen name only.
Definition: customized_video_container.h:33
virtual SDKError CreateVideoElement(IVideoRenderElement **ppElement, VideoRenderElementType type_)=0
Create a video render element.
Preview type, see IPreviewVideoRenderElement.
Definition: customized_video_container.h:19
virtual unsigned int GetCurrentRenderUserId()=0
Get the user ID corresponding to the current render element.
Normal type, see INormalVideoRenderElement.
Definition: customized_video_container.h:21
Video container interface.
Definition: customized_video_container.h:167
virtual VideoRenderElementType GetType()=0
Get the type of the video render element.
virtual SDKError Stop()=0
Stop previewing.
Normal video render element interface in the meeting.
Definition: customized_video_container.h:111