The base class for the video element interface.
More...
#include <customized_video_container.h>
Inherited by IActiveVideoRenderElement, INormalVideoRenderElement, and IPreviewVideoRenderElement.
The base class for the video element interface.
Definition at line 47 of file customized_video_container.h.
◆ ~IVideoRenderElement()
virtual IVideoRenderElement::~IVideoRenderElement |
( |
| ) |
|
|
inlinevirtual |
◆ EnableShowScreenNameOnVideo()
virtual SDKError IVideoRenderElement::EnableShowScreenNameOnVideo |
( |
bool | enable_show | ) |
|
|
pure virtual |
Set the visibility of the screen name on the current render element.
- Parameters
-
enable_show | TRUE indicates to show the screen name. Otherwise failed. To get extended error information, see SDKError enum. |
◆ GetCurrentRenderDataType()
Get the data type of the current render element.
- Returns
- The data type of the current render elements. For more details, see VideoRenderDataType enum.
◆ GetCurrentRenderUserId()
virtual unsigned int IVideoRenderElement::GetCurrentRenderUserId |
( |
| ) |
|
|
pure virtual |
Get the user ID corresponding to the current render element.
- Returns
- The ID of the user.
◆ GetPos()
virtual RECT IVideoRenderElement::GetPos |
( |
| ) |
|
|
pure virtual |
Get the area where the current render element is.
- Returns
- A RECT structure. The value in the structure corresponding to the coordinate system is the client area of the video container. The client coordinates corresponds to the client area of the upper-left corner of the parent window.
◆ GetType()
Get the type of the video render element.
- Returns
- If the function succeeds, the return value is the type of the render element. For more details, see VideoRenderElementType enum. Otherwise failed, the return value is VideoRenderElement_None.
◆ Hide()
virtual SDKError IVideoRenderElement::Hide |
( |
| ) |
|
|
pure virtual |
Hide the render element.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed,see SDKError enum.
◆ SetPos()
virtual SDKError IVideoRenderElement::SetPos |
( |
RECT | pos | ) |
|
|
pure virtual |
Specify a new display area of the current render element.
- Parameters
-
pos | Specify a new area through RECT structure. The value in the structure corresponding to the coordinate system is that of the client area of the video main window. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed,see SDKError enum.
◆ SetResolution()
Set the resolution for the video in the current render element. Once you specify the value, the resolution will not change even the size of the element is changed. Specify a bigger resolution may cause subscribing fail.
- Parameters
-
resolution | Specify the resolution for the video in the current render element. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. To get extended error information, see SDKError enum.
◆ Show()
virtual SDKError IVideoRenderElement::Show |
( |
| ) |
|
|
pure virtual |
Show the render element.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed,see SDKError enum.