I have: ios app;
Server: openfire;
Framework: xmppframework from Robby Hanson.
The logic of the app is when user has logged in, the app will push him into a random room which has the fewest number of members.
The app successfully gets a list of all rooms on start from the server.
But I need to know which of these rooms have an empty place for a user!
There is a method called "fetchmemberslist", but it only returns you a list of members of a room when you are connected to that room.
I need something that will do the same without connecting to a room.
Think if I have 1000 rooms. Using this method the app needs to connect to every room, set delegate, activate, wait for IQ, remove delegate, deactivate and at the and go thru an array to find one with the fewest members.
Isn't it too much to do?
I have dig over the whole internet and everything leads to getting a member list when you are connected to a room.
Is there a way of doing this without connecting a room.
Many thanks in advance!
1) fetchMemberList: queries room members, not list of people who are present in room now. Are you really want members, not online users count? Anyway, if you are room admin, this query works without joining room.
2) If you want to query online users, you should use different query - see http://xmpp.org/extensions/xep-0045.html#disco-roomitems
3) Also, no one can forbid you to implement room members/onlines count on the server side and create custom query like <iq id='123' type='get'><freeroom xmlns='my:freeroom:query' /></iq> with response of room JID like <iq id='123' type='result'><freeroom xmlns='my:freeroom:query'><jid>roomname#conference.example.com</jid></freeroom></iq> where roomname was found by server itself.
Related
I'm trying to achieve one to one video calls using Twilio video service. I already configure my server side for generating tokens. So, what should I do now?
Do I need to create room for each user on app start and then join this room with another user? Or it should be some specific room (combination of user1 data + user2 data), if so - when user2 joins this room how should I handle room notifications on user1 side?
For one to one user call I would suggest every user might have unique username or anything which is unique ,so you can build up logic for room name like username1-username2 , and whenever username1 tries to call username2 we can set up logic on backend in a way that will generate token of specific room only.
On receiver end username2 can receive VoIP or remote notification and this notification user data (payload) should contain room name to be joined so that when username2 receives call or notification, we can make request for joining in same room in which username1 already exist.
We are developing mobile app to book the meeting room based on its availablity at given time using GRAPH API. This is a spcific case where oragnizer is busy in another meeting but he/she still wants to block a meeting room at the same time. FindMeetingTime API is not giving suggestion for rooms if the oragnizer is busy.
How to display a list of available meeting rooms at present using Microsoft Graph API
I have gone through this but this is not going to serve my problem as I am looking for API which gives meeting rooms suggestions even though organizer is not avaiable.
Can you please suggest any API or any soultion which solves the problem.
Thanks
You can create and use any generic service account of your Active directory that does not belongs to a person and pass it in your Request body as an attendee in your Request to find rooms.it should return room list in response .
Hello there i am working on an education focues application that works like written below:
1- "Teacher" user has a class, with "Student" users listed in main screen
2- Teacher starts an exam
3- Student users will get a notification that the exam has been started.
4- Teacher will observe the students actions in realtime (i.e when u student answers a question, teacher will automatically see which question is answered and if it is correct or wrong)
The application will be an iPad application and serverside will use (sadly) Microsoft WCF.
Here are things that i thought about things that i could do:
Establishing a socket connection with teacher and students via server like a irc chatroom on background
Using push notifications to receive student actions (somehow without showing any "push" notification
(Worst case scenario), teacher's device will periodically send requests about student's exam status
What do you think? What is the best way to do?
Thanks for helping.
Take a look on websocket.
https://github.com/square/SocketRocket
Maybe this lib is your friend, but i can't help you on server side job.
I am new to using TokBox with my Rails app. I have created my "rooms" and a user can create a "room" and other users can join the room and video conference together Marvelous! But how do I know how many users are in a room and which users they are? I would like to display their information eventually but initially I just need to know how to see who is in the room on pageload. Any experienced TokBox devs out there?
There isn't any way to see who is in the room on pageload. Once you are connected to a session, you will get a connectionCreated event for every person in the room. To get the number of users in the room, just have a counter that increments for each connectionCreated event that gets triggered.
I am able to establish 1-1 chat by creating a room. I have used room because I will get history of last 50 messages (I would prefer more in number with paged results and expecting this feature in the near future).
I am unable to figure out how I can implement image and video sharing in between the text chat.
I also want this in the history I get. I mean I need to get the order of the text/image/video along with their details to display to the user.
When I upload an image file using Content module, the files are saved in a separate table in contents section (which is fine for user's gallery kind of app). But for chat we need to know who sent to whom and what (image/video/text).
I would like to know whether this is possible with the current version of the Quickblox sdk. or else is there any way we can establish this using Custom objects module? If possible, will this work if there are more number of users in the room? Please give me a solution to this.
If you want create chat with content, you need to use a Custom Objects. (in current QB version).
Advantage - you can also get chat history and implement deleting of message history.
But this method doesn't very simply.
At first you need create Custom objects represented next things:
single chat message
group chat message
(may be need create extended user profile)
At first, you can use QBChat module for changing service information between users.
When you need send message, you create Custom Object (CO) - message with parameters and upload it. When it uploading, you send service message via QB chat to your opponent user. When opponent will receive it, he should perform request for updating CO (in this case - single message).
As example, single chat message can contain next parameters:
opponent qb user id;
owner qb user id;
message text;
link to content;
Sending of content message divide to next steps:
At first, you need upload content file using Content module, and after this create message CO, upload it on server and send service message to your opponent