Callback event of custom video container.
More...
#include <customized_video_container.h>
Callback event of custom video container.
Definition at line 155 of file customized_video_container.h.
◆ ~ICustomizedVideoContainerEvent()
virtual ICustomizedVideoContainerEvent::~ICustomizedVideoContainerEvent |
( |
| ) |
|
|
inlinevirtual |
◆ onLayoutNotification()
virtual void ICustomizedVideoContainerEvent::onLayoutNotification |
( |
RECT |
wnd_client_rect | ) |
|
|
pure virtual |
The callback will be triggered if the size of video container changes. The user should redeploy the video render elements displayed once received the callback event.
- Parameters
-
wnd_client_rect | Specify a new display area. The coordinate value of the structure is that of the parent window of the video container. |
◆ onRenderDataTypeChanged()
The callback will be triggered if the video render element corresponding to data type changes.
- Parameters
-
pElement | The video render elements corresponding to data type that is changed. |
dataType | Specify a new render data type. For more details, see VideoRenderDataType enum.
|
◆ onRenderUserChanged()
virtual void ICustomizedVideoContainerEvent::onRenderUserChanged |
( |
IVideoRenderElement * |
pElement, |
|
|
unsigned int |
userid |
|
) |
| |
|
pure virtual |
The callback will be triggered if the video render element corresponding to the user changes.
- Parameters
-
pElement | The video render element corresponding to the user who is changed. |
userid | Specify the ID of new user. |
◆ onSubscribeUserFail()
◆ onVideoRenderElementDestroyed()
virtual void ICustomizedVideoContainerEvent::onVideoRenderElementDestroyed |
( |
IVideoRenderElement * |
pElement | ) |
|
|
pure virtual |
The callback will be triggered before the video render element is destroyed.
- Parameters
-
pElement | Specify the video render element to be destroyed. |
◆ onWindowMsgNotification()
virtual void ICustomizedVideoContainerEvent::onWindowMsgNotification |
( |
UINT |
uMsg, |
|
|
WPARAM |
wParam, |
|
|
LPARAM |
lParam |
|
) |
| |
|
pure virtual |
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.