Hi developers,<br><br>I'm trying to connect with an URL like this: "rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp?videocodec=h264".<br><br>I correctly do DESCRIBE and SETUP receiving "RTSP/1.0 200 OK" but after that when I send "PLAY" I receive "RTSP/1.0 400 Bad Request". With Wireshark I've been looking all the packets that I send and receive. All is correct I think.<br>
<br>I use RTSPClient.cpp and I changed that function:<br><br>char const* RTSPClient::sessionURL(MediaSession const& session) const {<br> char const* url = session.controlPath();<br> if (url == NULL || strcmp(url, "*") == 0) url = fBaseURL;<br>
if (url == NULL || strchr(url, '?') != NULL) url = fBaseURL; /*New code*/<br> return url;<br>}<br clear="all"><br>I added that line because I tried connect using VLC and the difference betwen PLAY command is:<br>
<br>VLC Send play with: "rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp".<br>RTSPClient without my code sends: "rtsp://xxx.xxx.xxx.xxx:554/axis-media/media.amp?videocodec=h264".<br><br>I changed to send the same than VLC.<br>
<br>Thanks in advance.<br><br>PD: I know that VLC not is a part of live555 but is fine to compare the connection sequence.<br><br>-- <br>Miguel Angel Arcos<br>