|
板凳
楼主 |
发表于 2016-3-2 13:14:43
|
只看该作者
谢谢!
你好,我想问一下 有没有档远端修改了摄像头 或者麦克风的状态后被调用的回调函数?
我现在是通过一下方式来获取信息的,但是达不到实时的效果。
NSMutableArray *allUserMArr = [AnyChatPlatform GetOnlineUser];//[[ViewController getSelfIsSingleObj] getOnlineUserArray];
NSLog(@"%@", allUserMArr);
for (int i = 0; i < [allUserMArr count]; i++)
{
NSString *remoteId = [allUserMArr objectAtIndex:i];
int stateCamera = [AnyChatPlatform GetCameraState:[remoteId intValue]];//1:关闭 2:打开
int stateSpeak = [AnyChatPlatform GetSpeakState:[remoteId intValue]];// 0:关闭 1:打开
NSLog(@"当前用户 id : %@ camera : %d speak : %d", remoteId, stateCamera, stateSpeak);
}
|
|