有,一直在尝试。
我换了个工程就好了,不过,我又遇到了新的问题,在视屏登录后,在列表里点了个人视屏,然后程序就崩溃了,- (void) StartVideoChatint) userid { //Get a camera, Must be in the real machine. NSMutableArray* cameraDeviceArray = [AnyChatPlatform EnumVideoCapture]; if (cameraDeviceArray.count > 0) { [AnyChatPlatform SelectVideoCapture:[cameraDeviceArray objectAtIndex:1]]; } // open local video [AnyChatPlatform SetSDKOptionInt:BRAC_SO_LOCALVIDEO_OVERLAY :1]; [AnyChatPlatform UserSpeakControl: -1:YES]; [AnyChatPlatform SetVideoPos:-1 :self :0 :0 :0 :0]; [AnyChatPlatform UserCameraControl:-1 : YES]; // request other user video [AnyChatPlatform UserSpeakControl: userid:YES]; [AnyChatPlatform SetVideoPos:userid: self.remoteVideoSurface:0:0:0:0]; [AnyChatPlatform UserCameraControl:userid : YES]; self.iRemoteUserId = userid; //远程视频显示时随设备的方向改变而旋转(参数为int型, 0表示关闭, 1 开启[默认],视频旋转时需要参考本地视频设备方向参数) [AnyChatPlatform SetSDKOptionInt:BRAC_SO_LOCALVIDEO_ORIENTATION : self.interfaceOrientation]; } 程序是跑完这个方法最后一句后崩溃的
|