Android platform fixes the direction of remote video

Source: Internet
Author: User

because Android the openness of different devices, there are some differences in the video data collected by some devices show a certain error in the direction, which is usually related to the driver of the hardware device, the new increase API interface is the remote display, you can support manual to correct the direction of the remote video.

Increase in API Interface parameter definitions (in anychatfor Web SDK as an example):

1.

2. // remote video direction correction flag definition

3. varbrac_rotation_flags_mirrored = 0x1000; image needs mirror rollover

4. varbrac_rotation_flags_rotation90 = 0x2000; rotate The dimension clockwise

5. varbrac_rotation_flags_rotation180 = 0x4000; Clockwise rotation of the degree of

6. varbrac_rotation_flags_rotation270 = 0x8000; Clockwise rotation of the degree of

7.

8. // user Information control type definition (API:brac_userinfocontrol incoming parameter)

9. varbrac_userinfo_ctrlcode_rotation = 8; lets the specified user video rotate on display,wParam as the rotation angle parameter

Copy Code

In the video display process, if you need to rotate the video clockwise - , you can call the following API :

1. Brac_userinfocontrol (mtargetuserid,brac_userinfo_ctrlcode_rotation, Brac_rotation_flags_ ROTATION90, 0, "");

Copy Code

In the video display process, if you need to rotate the video clockwise - rotation and then mirror the rollover, you can call the following API :

1. Brac_userinfocontrol (mtargetuserid,brac_userinfo_ctrlcode_rotation, Brac_rotation_flags_ ROTATION90 +brac_rotation_flags_mirrored, 0, "");

Copy Code

In the video display process, if you need to cancel the rotation, the incoming parameter 0 can be, refer to the following API Call:

1. Brac_userinfocontrol (mtargetuserid,brac_userinfo_ctrlcode_rotation, 0, 0, "");

Copy Code

the newly added API interface currently only supports anychat for Windows SDK , anychat for Web SDK , from anychat r3997 the beginning version can be supported.

Android platform fixes the direction of remote video

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.