Quickblox iOS: Connecting 2 users in video chat without initiating a call

╄→гoц情女王★ 提交于 2019-12-08 03:18:26

First of all you should register new user and send him some tag. To do this you have to:

1) Create a session

[QBAuth createSessionWithDelegate:self]

2) Register new User and set him some tag:

 QBUUser *user = [QBUUser user];
 user.login = @"someuser";
 user.password = @"somepass";
 user.tags = @[@"Tag1"];

3) Create more users with the same tag

Next, in order to have a call with some user you have to randomly get it. Here is a request to get all the users with particular tag:

[QBUsers usersWithTags:@[@"Tag1"] delegate:self];

you will get all users with this tag. Next - choose one of them randomly

Finally, make a video call to this user

Use Users sample to learn how to work with Users module http://quickblox.com/developers/SimpleSample-users-ios

btw: QuickBlox released SDK 2.0 with new blocks API - you can try it http://quickblox.com/developers/IOS#iOS_SDK_Transition_guide_from_version_1.9_to_2.0

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!