Text Chat

Ask any questions or talk about OpenTok here!

Text Chat

Postby ksoomro » Mon Dec 27, 2010 11:00 pm

Code: Select all
Archived Post


I have developed the video chat page it is working fine. Now I need

text chat part also. Could you please send me its sample code or let

me know which method should I use to integrate this feature on my

page.

Thanks!

Looking forward to your early response

Best regards

Kashif
Was this post helpful? (0)
ksoomro
 

Text Chat

Postby Adam Ullman » Mon Dec 27, 2010 11:13 pm

Code: Select all
Archived Post


Hi Kashif
We currently do not have textchat built into our API. What we do have however is simple signaling that could be used to build text chat. If you store the chat messages yourself in the backend eg. in a database or even in a flat file then you can use our signaling API to tell people when someone sends a message. The signaling function is Session.signal() and just sends a signal with no contents. The idea is that you would use this signal to indicate that some data has changed.
For example a very basic text chat implementation could be to store a text file on your server for every session eg <session_id>.txt. The contents of the text file is the contents of the textchat for that session. Then every time someone sends a message they append their message to that text file and call the signal() function. When everyone in the Session receives the signalReceived they use an AJAX call to pull the contents of the updated text file. This implementation would obviously not scale very well to large text chats but you get the idea.
Hope that helps
Adam
On Dec 27 2010 at 10:00 PM ksoomro wrote:
- Hide quoted text -
Was this post helpful? (0)
Adam Ullman
 

Text Chat

Postby Kashif Soomro » Tue Dec 28, 2010 12:19 am

Code: Select all
Archived Post


Thanks Adam for your prompt response. Could you please let me know when the
text chat built will be available in your API?
I am going to try the other way as told by you.
Best regards
Kashif
- Hide quoted text -
Was this post helpful? (0)
Kashif Soomro
 

Text Chat

Postby Adam Ullman » Tue Dec 28, 2010 12:25 am

Code: Select all
Archived Post


We don't currently have plans to add text chat to the API but it is something we are considering.
Adam
On Dec 27 2010 at 11:19 PM Kashif Soomro wrote:
- Hide quoted text -
Was this post helpful? (0)
Adam Ullman
 

Text Chat

Postby Kashif Soomro » Tue Dec 28, 2010 12:56 am

Code: Select all
Archived Post


I think this feature is necessary with Video Chat so should be added in
the API.
 Thanks for your consideration!
- Hide quoted text -
Was this post helpful? (0)
Kashif Soomro
 

Text Chat

Postby netusco » Fri Feb 18, 2011 3:16 pm

Code: Select all
Archived Post


Hi Kashif
did you end up trying to implement the text chat using signal()?
Could you send me the code if you did it?
I would like to do the same while waiting that they implement the text chat
that I also feel it's really needed.
Was this post helpful? (0)
netusco
 

Text Chat

Postby Melih Onvural » Fri Feb 18, 2011 4:05 pm

Code: Select all
Archived Post


We understand that text chat is a feature that many folks want but our first and foremost goal right now is to really build the best video chat API that is available.
Time spent building text chat is time not spent making our video chat product more robust and it's just not time that we have right now unfortunately. That said we hear you and we'll keep the community informed if text chat becomes something that we are able to build out.
--
Melih O.
me...@tokbox.com
On Feb 18 2011 at 2:16 PM netusco wrote:
- Hide quoted text -
Was this post helpful? (0)
Melih Onvural
 


Return to Discussion and Questions



Who is online

Users browsing this forum: Google [Bot] and 1 guest

cron