I am developing an audio conference Flex application.
Once clients connect to Wowza Server, they publish their audio sterams with an unique string :
For Client A
Any client who wants to listen a stream from Wowza Server, she has to use play method of NetStream object with a unique string which is the same as the publisher used to publish.
public var nsPublish:NetStream = new NetStream(nc);
For Client B
These are enough to establish a communication between Client A and B.
public var nsPlay:NetStream = new NetStream(nc);
However, when Client C is wanted to be involved things are getting tough.
Because, multiple NetStream objects cannot be used to play multiple streams on a flash client.
Solution that i have found is to mix these audio channels on Server than serve them to clients so that they can play and hear all of clients with one NetStream object.
For example, for Client A, there must be a stream which contains streams of B,C,D,E .. ( B+C+D+E .. ) and for Client B it is sum of A,C,D,E..
I guess I firstly have to develop a Custom Module Class to handle this but I don't understand how to decode these streams, and mix them, and then encode in server side for each client. Any help maybe?