How to make RTP MediaLocator throw an error?

R

Rachel

Hi,

I understand that if I establish multiple rtp connections from the same
local port, i.e.:

MediaLocator inputLocator = new MediaLocator("rtp://hostname1:8000/video");
MediaLocator inputLocator = new MediaLocator("rtp://hostname2:8000/video");

I will get this "print-out error" on my cmd terminal:
Cannot create the RTP Session: Can't open local data port: 8000

Is there anyway that I can catch this print-out? I want my program to throw
an exception if the program is trying to connect to multiple host via the
same port.

Cheers,
Rach
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top