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
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") |
HWMBizSdk.getBizOpenApi().setLocalVideoMirrorType(MirrorType.MIRROR_LEFT_RIGHT));
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot