|
我是按照 AnyChatQueue这个demo集成的。调试时发现VideoActivity下的CheckVideoStatus方法里bOtherVideoOpened始终为false。请问需要怎么设置才变成true
private void CheckVideoStatus() {
if (!bOtherVideoOpened) {
if (anychat.GetCameraState(dwTargetUserId) == 2
&& anychat.GetUserVideoWidth(dwTargetUserId) != 0) {
SurfaceHolder holder = mSurfaceRemote.getHolder();
if (AnyChatCoreSDK.GetSDKOptionInt(AnyChatDefine.BRAC_SO_VIDEOSHOW_DRIVERCTRL) != AnyChatDefine.VIDEOSHOW_DRIVER_JAVA) {
holder.setFormat(PixelFormat.RGB_565);
holder.setFixedSize(anychat.GetUserVideoWidth(-1), anychat.GetUserVideoHeight(-1));
}
Surface s = holder.getSurface();
if (AnyChatCoreSDK.GetSDKOptionInt(AnyChatDefine.BRAC_SO_VIDEOSHOW_DRIVERCTRL) == AnyChatDefine.VIDEOSHOW_DRIVER_JAVA) {
anychat.mVideoHelper.SetVideoUser(videoIndex, dwTargetUserId);
} else
anychat.SetVideoPos(dwTargetUserId, s, 0, 0, 0, 0);
bOtherVideoOpened = true;
}
}
|
|