|
板凳
楼主 |
发表于 2016-5-30 14:03:32
|
只看该作者
我找到问题了 java视频显示 这个是干嘛的- configEntity = ConfigService.LoadConfig(this);
- if (configEntity.videoOverlay != 0) {
- mSurfaceLocal.getHolder().setType(
- SurfaceHolder.SURFACE_TYPE_PUSH_BUFFERS);
- }
- // 如果是采用Java视频采集,则设置Surface的CallBack
- if (AnyChatCoreSDK
- .GetSDKOptionInt(AnyChatDefine.BRAC_SO_LOCALVIDEO_CAPDRIVER) == AnyChatDefine.VIDEOCAP_DRIVER_JAVA) {
- mSurfaceLocal.getHolder().addCallback(AnyChatCoreSDK.mCameraHelper);
- Log.i("ANYCHAT", "VIDEOCAPTRUE---" + "JAVA");
- }
- // 如果是采用Java视频显示,则设置Surface的CallBack
- if (AnyChatCoreSDK
- .GetSDKOptionInt(AnyChatDefine.BRAC_SO_VIDEOSHOW_DRIVERCTRL) == AnyChatDefine.VIDEOSHOW_DRIVER_JAVA) {
- videoIndex = anychatSDK.mVideoHelper.bindVideo(mSurfaceRemote
- .getHolder());
- anychatSDK.mVideoHelper.SetVideoUser(videoIndex,
- anyChatServicekfUserID);
- Log.i("ANYCHAT", "VIDEOSHOW---" + "JAVA");
- }
复制代码 我如果这样设置 就看不到远程视频
// 远程视频绑定
videoIndex = anychatSDK.mVideoHelper.bindVideo(mSurfaceRemote
.getHolder());
anychatSDK.mVideoHelper.SetVideoUser(videoIndex, mRemoteUserid);
这样设置就没问题 什么意思呢 那个java视频判断是干嘛用的? |
|