#include <IAgoraStreamingKit.h>
◆ setView()
virtual int agora::streaming::IVideoPreviewRenderer::setView |
( |
view_t |
view | ) |
|
|
pure virtual |
Set the local video view.
This method sets the video display window for the local video stream. To unbind the local video from the view, set view
as null
.
- Parameters
-
view | The video display window. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setRenderMode()
virtual int agora::streaming::IVideoPreviewRenderer::setRenderMode |
( |
RENDER_MODE_TYPE |
renderMode | ) |
|
|
pure virtual |
Updates the display mode of the local video view.
After setting the local video view, you can call this method to update its rendering mode. If affects only the video view that the local user sees, not the published local video stream.
- Parameters
-
renderMode | Sets the local display mode. See #RENDER_MODE_TYPE. |
- Returns
- 0: Success.
- < 0: Failure.
◆ setMirrorMode()
virtual int agora::streaming::IVideoPreviewRenderer::setMirrorMode |
( |
VIDEO_MIRROR_MODE_TYPE |
mirrorMode | ) |
|
|
pure virtual |
Sets the video mirror mode.
- Parameters
-
mirrorMode | Sets the video mirror mode:
VIDEO_MIRROR_MODE_AUTO(0) : (Default) The mirror mode determined by the Kit. If you use the front camera, the SDK enables the mirror mode; if you use the rear camera, the SDK disables the mirror mode.
VIDEO_MIRROR_MODE_ENABLED(1) : Enable the mirror mode.
VIDEO_MIRROR_MODE_DISABLED(2) : Disable the mirror mode.
|
- Returns
- 0: Success.
- < 0: Failure.
◆ release()
virtual void agora::streaming::IVideoPreviewRenderer::release |
( |
| ) |
|
|
pure virtual |