hi, Why would it be too much CPU demanding using the client connection.call() ?
I tried a private TEXT chat with that technique and it works pretty well. The client sends the username for whom the message is for, and i get the first client connection in my Hashmap of all clients. The client name is unique and so its the key for my hashtable. Thats not a private chatroom, but simple a private message... what else would be a better solution for this problem? cu maZe On Thu, 25 May 2006 11:12:15 +0200, Tom Krcha <[EMAIL PROTECTED]> wrote: > Hi Flavio, > > Few technics of messaging: > > To streaming: > > It's a pipeline (as Steven wrote). > One is broadcaster, second one receiver (or more receivers) > This is very CPU/memory (on server) effective way of sending lots of > data. > The problem is, that in one stream, there can be only one broadcaster. > So if you want 2 way communication, you have to establish two streams. > (and > it could be very-precious-code demanding - anyway, you will have to do it > for audio and video. > > E.g. in stream i was sending microphone level data with audio data - so I > was able to show users on the other side the level of voice - but now > it's > unnecessary in AS 3.0 -> it has already "sound peak" abilitity. > > SharedObjects: > > You can create sharedobject for private messaging - clients of this > shared > object will just subscribe to it (getRemote method from client). > > NetConnection.Call: (too CPU demanding, great for specific demands on > server > - e.g. getting another user's data) > > Calling remoted methods with specific parameters can do the same job as > shared objects. > > You call method on server and it can do: > > 1) resend the message to specified people (using invoke method [on fms > client.call method]) > > 2) send data to specified shared object (but here is a question, why not > to > use sharedobjects as they are) > > Hope it helps - I have developed lot's of app on FMS (Videochats, > Communicator, etc). > But in Red5 - I am just beginner - so I can't tell you exactly what is > best > solution. I think it's a way of choice - and it will behave same as on > FMS. > > Tom > > -----Original Message----- > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On > Behalf > Of Flávio Lúcio Pereira > Sent: Thursday, May 25, 2006 5:35 AM > To: [email protected] > Subject: Re: [Red5] about private chat of red5 > > good question.... I would like know that too...... > any answer? > Thankz.... > > 2006/5/23, ??? <[EMAIL PROTECTED]>: >> Hi all: >> I want implement private chat, if I think I want send a message go > through >> red5 server to another person not all person online, How can I do? >> >> >> _______________________________________________ >> Red5 mailing list >> [email protected] >> http://osflash.org/mailman/listinfo/red5_osflash.org >> > > -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ _______________________________________________ Red5 mailing list [email protected] http://osflash.org/mailman/listinfo/red5_osflash.org
