#pragma mark 打开本地麦克风
- (void)openLocalMicrophone
{
[AnyChatPlatform UserSpeakControl: -1:YES];
}
#pragma mark 开启本地视频
- (void) StartLocalVideoChat
{
//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];