|
8#
楼主 |
发表于 2015-5-13 18:21:58
|
只看该作者
- if (AnyChatCoreSDK
- .GetSDKOptionInt(AnyChatDefine.BRAC_SO_VIDEOSHOW_DRIVERCTRL) == AnyChatDefine.VIDEOSHOW_DRIVER_JAVA) {
- int index = anychatSDK.mVideoHelper.bindVideo(otherView.getHolder());//好像就只有10个callback接口的实现来着
- anychatSDK.mVideoHelper.SetVideoUser(index, userID[0]);
- anychatSDK.UserCameraControl(userID[0], 1);
- anychatSDK.UserSpeakControl (userID[0], 1);
- int i = anychatSDK.mVideoHelper.bindVideo (anotherView.getHolder ());
- Toast.makeText (this,""+i+";"+index,Toast.LENGTH_SHORT).show ();
- anychatSDK.mVideoHelper.SetVideoUser (i,userID[1]);
- anychatSDK.UserCameraControl(userID[1], 1);
- anychatSDK.UserSpeakControl (userID[1], 1);
- }
- myView.setZOrderOnTop (true);
- anychatSDK.UserCameraControl(-1, 1);// -1表示对本地视频进行控制,打开本地视频
- anychatSDK.UserSpeakControl(-1, 1);// -1表示对本地音频进行控制,打开本地音频
- }
复制代码 我是这样改的,不知道是哪里错了 |
|