Help Center> Meeting> Client SDK Reference> Android SDK> API Reference> Audio and Video Data Streams> Configuring Video Mirroring of Third-Party Streaming
Updated on 2023-03-23 GMT+08:00

Configuring Video Mirroring of Third-Party Streaming

API Description

This API is used to set the mirroring mode of the front camera in the local video window during third-party stream push.

Precautions

This API must be called in the UI main thread. Set the mirroring type of the front camera to left and right. Mirroring is unavailable for the rear camera.

Method Definition

1
2
3
4
5
    /**
      * Sets the mirroring mode of the local video window.
     * @param mirrorType Indicates the mirroring mode. The value 0 means no mirroring, 1 means up and down mirroring, and 2 means left and right mirroring. The default value is 0, and up and down mirroring is not supported currently.
     */
    void setLocalVideoMirrorType(MirrorType mirrorType);

Parameter Description

Table 1 Parameters

Parameter

Mandatory

Type

Description

mirrorType

Yes

MirrorType

Mirroring mode.

MIRROR_NONE(0, "No mirroring")

MIRROR_UP_DOWN(1, "Up and down mirroring") (not supported currently)

MIRROR_LEFT_RIGHT(2, "Left and right mirroring")

Sample Code
HWMBizSdk.getBizOpenApi().setLocalVideoMirrorType(MirrorType.MIRROR_LEFT_RIGHT));