I have a video chat requirement wherein I have to connect 2 (somewhat related) users through video chat. I am not finding necessary api to call, hence the question.
I am basically following this tutorial but it seems it doesn't have everything I need. I do not need explicit "call to this user" sort of function. The user never gets to see entire user list.
As a result, I wonder if I could have X number of users calling and another X number of users waiting to accept that call.
To summarize:
I just want to connect users based on some traits (like their registered tags). For any user A, there can be more than one users having similar tags as A - so all of them are prospect video chat users for user A.
I need to pick one of them (random may work) and stream A's video / audio among them.
What all things do I have to do? Here is partial list but I don't know I am right at the end.
1 - Call [QBAuth createSessionWithDelegate:self]
2 - From the resulting session, call [QBUsers logInWithUserLogin]
3 - From the resulting session, call [[QBChat instance] loginWithUser:user]
4 - From the resulting chatDidLogin
delegate, call what?
Should it be entering some chat room, or use of some code using chatRoomDidChangeOnlineUsers
? I don't know.
Please help me with the minimal required sequence of things to call, in short, modify 1-2-3-4 above.
Update on why it would not be possible to initiate a call:
This is because since chat is involuntary, calls may collide. If I use calluser
api, everyone would end up calling. Likewise is true for waiting to accept a call. I am unable to think of a fair strategy wherein the system does not get overwhelmed with call requests, or silent due to everyone keeps waiting.
In other words I am for the solution wherein every user can pick a random person to call, but does not mind if someone else calls him, and he should be able to handle it gracefully.