Mobile video--new API to manually correct the orientation

Source: Internet
Author: User

Due to the openness of Android, there are some differences between different devices, some of 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 API interface is the remote display, can support manual to correct the direction of the remote video.

Add API interface parameter definitions (for example, Anychat for Web SDK):


  1. Remote video direction correction flag definition

  2. var brac_rotation_flags_mirrored = 0x1000; Image needs mirror Rollover

  3. var brac_rotation_flags_rotation90 = 0x2000; Rotate clockwise 90 degrees

  4. var brac_rotation_flags_rotation180 = 0x4000; Rotate clockwise 180 degrees

  5. var brac_rotation_flags_rotation270 = 0x8000; Rotate clockwise 270 degrees


  6. User Information control type definition (Api:brac_userinfocontrol incoming parameter)

  7. var brac_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 90 degrees 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 90 degrees clockwise, 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, pass the parameter 0, refer to the following API call:

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

Copy Code

The newly added API interface currently supports only anychat for the Windows sdk,anychat for Web SDK, starting with the Anychat r3997 version.


Related Article

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.