Transmitting RTP audio with a data sink

Hi,

I have problem with transimitting audio using data sink.

String URL = "rtp://localhost:10000/audio/1";

Get the audio data source, and create a clonable soruce and the cloned source.

Create a player with the clonable source, and create a processor with cloned source.

When the processor is configured, set its content descriptor to RAW_RTP, and set track control's format to GSM_RTP.

When the processor is realized, create datasink with a medialocator which has the above URL.

Start both the player and processor.

For the RTP receiver, just create a player with a mediaLocator using the above URL.

Run both the sender and receive on the same Windows XP box. I can't find any error message on both consoles. The sender's player works fine, but the receiver never gets realized. In fact, the receiver does not get any events.

Any idea?

Thanks,

Derek

[935 byte] By [derek.li] at [2007-9-30 20:38:27]
# 1
it's solved.But still don't know why I can't run both the sender and receiver on the same computer.
derek.li at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...
# 2
Could you tell me how you solve it?Cause I think I am facing similar problem.Thank you.
RickBear at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...
# 3

Hello

I think I have done the same as you, but without use a clonable and cloned datasource.

Well, I have de same problem, my receptor player don磘 become in realize state. I磎 using the same computer. How have you solved the problem? Have you use two computers?

Please, give me an anwser.

franquital at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...
# 4

Hello

I think I have done the same as you, but without use a clonable and cloned datasource.

Well, I have de same problem, my receptor player don磘 become in realize state. I磎 using the same computer. How have you solved the problem? Have you use two computers?

Please, give me an anwser.

franquital at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...
# 5

It does not work on one computer, and I don't know why.

It does work on two computers in the same LAN. Suppose you want to send audio from computerA to computerB. The URL of the sending program will be

String URL = "rtp://computerB:10000/audio/1";

The URL of the receiving program will be

String URL = "rtp://localhost:10000/audio/1";

or

String URL = "rtp://computerB:10000/audio/1";

Good Luck.

Derek

derek.li at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...
# 6
I just solved it recently.It really can't work on the same computer, I have to use one cp as sender and another as receiver.And a key problem is that it only works aftering turning off my firewall, or setting Java programs allowed executing under the firewall.
RickBear at 2007-7-7 1:27:40 > top of Java-index,Security,Cryptography...