1 Reply Latest reply: Mar 3, 2012 11:55 PM by 921547 RSS

    rtspUtil.java,Problem about setup

    921547
      hi everyone .i just read the source rtspUtil.java.and i had a test.
      public class Test  implements ReceiveStreamListener{
           
           
      
           public static void main(String[] args) throws Exception {
                Test  tt = new Test();
                RtspUtil uu = new RtspUtil(tt);
                uu.setUrl("rtsp://122.207.50.181:554/test_hint.mov");
                System.out.println(uu.createConnection());
                      System.out.println(uu.rtspSetup());//setup  there is  a problem , i can't find the trackID  when i tried uu.getTrackId();
                System.out.println(uu.rtspStart());
           }     
      
           @Override
           public void update(ReceiveStreamEvent arg0) {
                // TODO Auto-generated method stub
                System.out.println("update");
           }
           
      }
      i found setup request was wrong
      it was
      SETUP rtsp://122.207.50.181/test_hint.mov/null RTSP/1.0
      CSeq: 73
      Transport: RTP/AVP;unicast;client_port=14024-14025
      User-Agent: JMF RTSP Player Version 2.1.1e

      it was null !!! rtsp://122.207.50.181/test_hint.mov/null

      can somebody help me.. and i use DSS as a server.
        • 1. Re: rtspUtil.java,Problem about setup
          921547
          and now i changed another video ,and i can find trackID either.but there still have some problems.
          it was that when i send play message (rtsp message),i got absolute nothing.
          it just said
          Server is not responding

          but the PLAY request message is ok

          PLAY rtsp://127.0.0.1/sample_100kbit.mov RTSP/1.0
          CSeq: 370
          Range: npt=0.0-
          Session: 47382079233405
          Scale:1
          User-Agent: JMF RTSP Player Version 2.1.1e

          the problem is that i can't get the video data and the server didn't response me!

          Edited by: user13786964 on 2012-3-3 下午9:55