AJAX module for video chat. (Invitation to 1:1 chat)
$30-250 USD
Completed
Posted about 13 years ago
$30-250 USD
Paid on delivery
I have a WordPress website (so it implies that I have database)
I have kinda a video chat embedded to this site but I need additional functionality.
There is a "container" for videostream of each user. I would like to have a name of user under the "container" and link (button) "Start 1:1 chat" (see attached picture [login to view URL])
So what do I need:
1. A very simple form for user name (not registration, just form for nic-name). I need a very simple check of nic-name (that it is not empty and does not consist of only space symbols), if the nic-name is not valid the corresponding alert should pop-up (ordinary javascript alert).
As the nic-name is entered, I need the inputbox to became grayed out. Only complete reload of the page makes the inputbox available again.
2. As for "Start 1:1 chat". When user "A" press "Start 1:1 chat" under user "B", the "B" see pop-up stating that "A" inviting "B" to the one by one chat. If "B" accepts the invitation then both users are redirected to the separate page. I need following data to be passed to the new page: name of both users and SessionID. What is the SessionID and where it comes from is my concern just be aware that it is string (combination of numbers and letters). If "B" declines invitation the "A" sees corresponding message, that "B" declined the invitation.
User "B" might be invented by several users at one time. When "B" declines one invitation another one is coming up.
The video stream is totally my concern. What I may suggest to developers. You may use a simple colored box (as on attached picture) to imitate the videostream. Each new "container" should appear next to the previous one on the right side as the new user (new visitor) submits his/her user name.
I would need a detailed explanation of the code (so I could easily integrate it with my videochat). And recommendations for integration. Like which parameters I should rename and which variables I should take care of. Please try to make the code as simple as possible. I do not need any super functionality and super stylish popups and so one. All I need is that it works.
Possible solution.
When user "A" press "Start 1:1 chat", the corresponding AJAX request is sent to server that user "A" would like to invite user "B"
Of course there should be server side script which is ready to receive this information.
Also from time to time AJAX should check if someone is inviting "A" to the chat.
Actually this is quite the same functionality as the some standard text chats have. Should not be hard to implement, but I simply do not have time to do that.
If you have another easier solution to implement same functionality, I am ready to discuss it :)