two datasinks: is it possible?

Hi. I have one stream in, and I want to send two streams out. I do all the stuff needed, build MediaLocator, Processor, etc

till I get to this instruction:

dataOutput = processor.getDataOutput();

Well. My question is: is it possible to use two datasinks to send this stream to two different ip addresses?

I do this:

String rtpURL ="rtp://" + ipAddressTo +":" + portTo +"/audio";

MediaLocator outputLocator =new MediaLocator(rtpURL);

Then I create the datasink coalling the Manager.

Can I do the same with another datasink with a RTPurl2 ?

I've tried to create a clone of the datasource, but it seems to not work.

Do I have to se the SessionManager, and so to learn all about it? Is not possible to use datasink when you have the same stream to send to many ip?

Thanks.

[955 byte] By [Fustaccioa] at [2007-10-3 4:35:12]
# 1

Try something like

String rtpURL = "rtp://" + ipAddressTo + ":" + portTo + "/audio";

SourceCloneable sC = (SourceCloneable)Manager.createCloneableDataSource(new DataSourcenew MediaLocator(rtpURL));

Now you can create multiple copies of the original DataSource

DataSource dS1 = sC.createClone();

DataSource dS2 = sC.createClone();

& now start the original

sC.start();

StefanMarica at 2007-7-14 22:38:55 > top of Java-index,Security,Cryptography...