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