Ansersion / myRtspClient

A RTSP client based on jrtplib
Apache License 2.0
163 stars 92 forks source link

DoOPTIONS error for Android #29

Open lattice0 opened 5 years ago

lattice0 commented 5 years ago

I've been using this lib for months on linux but I get error in DoOptions on Android (arm 64 bits):

    if (!myRtspClient.IsResponse_200_OK())
    {
        LOG << "RTSP DoOPTIONS() not ok for " << this->uri;
        LOG << myRtspClient.GetSDP();
        return 2;
    }

This is the output:

V/SLOG    (16585): 23:29:40 22/10, info: RTSP DoOPTIONS() not ok for rtsp://admin:123456@192.168.0.101:10554/tcp/av0_0
V/SLOG    (16585): 23:29:40 22/10, info: v=0
V/SLOG    (16585): o=VSTC 3780782848 3780782848 IN IP4 192.168.0.101
V/SLOG    (16585): s=streamed by the VSTARCAM RTSP server
V/SLOG    (16585): e=NONE
V/SLOG    (16585): c=IN IP4 0.0.0.0
V/SLOG    (16585): t=0 0
V/SLOG    (16585): m=video 0 RTP/AVP 96
V/SLOG    (16585): b=AS:1024
V/SLOG    (16585): a=control:track0
V/SLOG    (16585): a=rtpmap:96 H264/90000
V/SLOG    (16585): a=fmtp:96 packetization-mode=1;profile-level-id=4d002a;sprop-parameter-sets=Z00AKp2oHgCJ+WbgICAoAAADAAgAAAMAfCA=,aO48gA==
V/SLOG    (16585): m=audio 0 RTP/AVP 8   
V/SLOG    (16585): b=AS:64
V/SLOG    (16585): a=control:track1
V/SLOG    (16585): a=rtpmap:8 PCMA/8000/1
V/SLOG    (16585): 
V/SLOG    (16585): 

Did you use this lib with android succefully? Do you have any idea on what's happening?

Ansersion commented 5 years ago

Please cout myRtspClient.GetResponse() to get more info and put it here