|
android端使用这个接口主要是调整视频采集方向,对android本地预览没有影响,影响的是android端传到远程视频
使用方法如下
1、初始化sdk之后,调用AnyChatCoreSDK.SetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_AUTOROTATION, 0);
2、在视频通话中发现android采集方向不对,调用AnyChatCoreSDK.UserInfoControl(-1, AnyChatDefine.BRAC_USERINFO_CTRLCODE_ROTATION, AnyChatDefine.BRAC_ROTATION_FLAGS_ROTATION90 0, "");
视频通话中是怎么定义的? 我在button点击事件里面修改方向没反应
if (retation == 0) {
anychat.UserInfoControl(userID,
AnyChatDefine.BRAC_USERINFO_CTRLCODE_ROTATION,
AnyChatDefine.BRAC_ROTATION_FLAGS_ROTATION90, 0, "");
retation++;
} else if (retation == 1) {
anychat.UserInfoControl(userID,
AnyChatDefine.BRAC_USERINFO_CTRLCODE_ROTATION,
AnyChatDefine.BRAC_ROTATION_FLAGS_ROTATION180, 0, "");
retation++;
} else if (retation == 2) {
anychat.UserInfoControl(userID,
AnyChatDefine.BRAC_USERINFO_CTRLCODE_ROTATION,
AnyChatDefine.BRAC_ROTATION_FLAGS_ROTATION270, 0, "");
retation++;
} else {
anychat.UserInfoControl(userID,
AnyChatDefine.BRAC_USERINFO_CTRLCODE_ROTATION, 0, 0, "");
retation = 0;
} |
|