#include <NGIAgoraMediaNode.h>
◆ setRenderMode() [1/2]
virtual int agora::rtc::IVideoRenderer::setRenderMode |
( |
media::base::RENDER_MODE_TYPE |
renderMode | ) |
|
|
pure virtual |
Sets the render mode.
- Parameters
-
renderMode | The video render mode. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setRenderMode() [2/2]
virtual int agora::rtc::IVideoRenderer::setRenderMode |
( |
void * |
view, |
|
|
media::base::RENDER_MODE_TYPE |
renderMode |
|
) |
| |
|
pure virtual |
Sets the render mode of the view.
- Parameters
-
view | the view to set render mode. |
renderMode | The video render mode. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setMirror() [1/2]
virtual int agora::rtc::IVideoRenderer::setMirror |
( |
bool |
mirror | ) |
|
|
pure virtual |
Sets whether to mirror the video.
- Parameters
-
mirror | Whether to mirror the video:
true : Mirror the video.
false : Do not mirror the video.
|
- Returns
- 0: Success.
- < 0: Failure.
◆ setMirror() [2/2]
virtual int agora::rtc::IVideoRenderer::setMirror |
( |
void * |
view, |
|
|
bool |
mirror |
|
) |
| |
|
pure virtual |
Sets whether to mirror the video.
- Parameters
-
view | the view to set mirror mode. |
mirror | Whether to mirror the video:
true : Mirror the video.
false : Do not mirror the video.
|
- Returns
- 0: Success.
- < 0: Failure.
◆ setView()
virtual int agora::rtc::IVideoRenderer::setView |
( |
void * |
view | ) |
|
|
pure virtual |
Sets the video display window.
- Parameters
-
view | The pointer to the video display window. |
- Returns
- 0: Success.
- < 0: Failure.
◆ addView()
virtual int agora::rtc::IVideoRenderer::addView |
( |
void * |
view, |
|
|
const Rectangle & |
cropArea |
|
) |
| |
|
pure virtual |
Sets the video display window.
- Parameters
-
view | The pointer to the video display window. |
cropArea | (Optional) Sets the relative location of the region to show. See Rectangle. |
- Returns
- 0: Success.
- < 0: Failure.
◆ unsetView()
virtual int agora::rtc::IVideoRenderer::unsetView |
( |
| ) |
|
|
pure virtual |
Stops rendering the video view on the window.
- Returns
- 0: Success.
- < 0: Failure.
◆ removeView()
virtual int agora::rtc::IVideoRenderer::removeView |
( |
void * |
view | ) |
|
|
pure virtual |
remove rendering the video view on the window.
- Returns
- 0: Success.
- < 0: Failure.