Reputation: 21
First, sorry for my grammar, I'm not native!!!
I'm try to develop Miracast application on Sink device. It's done with some Android phones (LG G, Asus...) which not base on stagefright like Nexus 10 (also Nexus 4, HTC One...).
When I trying establish WFD session, the Nexus 10 says: "RTSP/1.0 505 RTSP Version not supported" after I reponse message M3. I googled and know the problem may be source device can't find "RTSP/1.0" in the message reponse. I defined RTSP_VERSION and use it to all of message (include M1 and M2 and still OK).
#define RTSP_VERSION "RTSP/1.0"
And the question is: Why the phone reply me like that (error 505)? Any suggestions for me to fix the problem?
the RTSP message log look like:
!!!
OPTIONS * RTSP/1.0
Date: Wed, 02 Jul 2014 08:21:50 +0000
Server: stagefright/1.2 (Linux;Android 4.4.4)
CSeq: 1
Require: org.wfa.wfd1.0
!!!
***
RTSP/1.0 200 OK
CSeq: 1
Public: org.wfa.wfd1.0, GET_PARAMETER, SET_PARAMETER
***
***
OPTIONS * RTSP/1.0
CSeq: 0
Require: org.wfa.wfd1.0
***
!!!
RTSP/1.0 200 OK
Date: Wed, 02 Jul 2014 08:21:50 +0000
Server: stagefright/1.2 (Linux;Android 4.4.4)
CSeq: 0
Public: org.wfa.wfd1.0, SETUP, TEARDOWN, PLAY, PAUSE, GET_PARAMETER, SET_PARAMETER
!!!
!!!
GET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0
Date: Wed, 02 Jul 2014 08:21:50 +0000
Server: stagefright/1.2 (Linux;Android 4.4.4)
CSeq: 2
Content-Type: text/parameters
Content-Length: 83
wfd_audio_codecs:
wfd_video_formats:
wfd_content_protection:
wfd_client_rtp_ports
***
RTSP/1.0 200 OK
CSeq: 2
Content-Type: text/parameters
Content-Length: 210
wfd_audio_codecs: AAC 00000001 00
wfd_video_formats: 28 00 02 02 00000020 00000000 00000000 00 0000 0000 00 none none
wfd_content_protection: none
wfd_client_rtp_ports: RTP/AVP/UDP;unicast 6500 0 mode=play
!!!
SET_PARAMETER rtsp://localhost/wfd1.0 RTSP/1.0
Date: Wed, 02 Jul 2014 08:21:50 +0000
Server: stagefright/1.2 (Linux;Android 4.4.4)
CSeq: 3
Content-Type: text/parameters
Content-Length: 246
wfd_video_formats: 00 00 02 02 00000020 00000000 0000
<missing log but don't care about that, it's fine>
***
RTSP/1.0 200 OK
CSeq: 3
***
!!!
RTSP/1.0 505 RTSP Version not supported
Date: Wed, 02 Jul 2014 08:21:50 +0000
Server: stagefright/1.2 (Linux;Android 4.4.4)
CSeq: 3
!!!
##MIRA Break!!!!
##MIRA EndClient!!!
Upvotes: 1
Views: 1336
Reputation: 344
Even I was facing same issue. It's because of wrong content-length value. Try with 211 instead of 210 while replying to GET_PARAMETER request
Upvotes: 0