How to make RTP MediaLocator throw an error?

Discussion in 'Java' started by Rachel, Aug 29, 2003.

  1. Rachel

    Rachel Guest

    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
    Rachel, Aug 29, 2003
    #1
    1. Advertising

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

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Kerri
    Replies:
    2
    Views:
    12,992
    Kevin Spencer
    Oct 27, 2003
  2. Angel Kanchev
    Replies:
    0
    Views:
    827
    Angel Kanchev
    Jul 10, 2003
  3. Replies:
    15
    Views:
    7,480
    Roedy Green
    Sep 8, 2005
  4. killy971
    Replies:
    1
    Views:
    689
    Johannes Koch
    Aug 6, 2008
  5. Emanuele D'Arrigo

    To throw or to throw not?

    Emanuele D'Arrigo, Nov 14, 2008, in forum: Python
    Replies:
    6
    Views:
    308
    Emanuele D'Arrigo
    Nov 15, 2008
Loading...

Share This Page