Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GetMediaData: No such media session #20

Open
cafecai opened this issue May 6, 2019 · 6 comments
Open

GetMediaData: No such media session #20

cafecai opened this issue May 6, 2019 · 6 comments

Comments

@cafecai
Copy link

cafecai commented May 6, 2019

When I connect to the rtsp server, the program keeps prompting "GetMediaData: No such media session", and the server prompts "client not support accept SDP." My rtsp server can run normally, and the VLC media player can receive the video. Excuse me, what is this question?

start PLAY
GetMediaData: No such media session
GetMediaData: No such media session
GetMediaData: No such media session
GetMediaData: No such media session
GetMediaData: No such media session
.....

@cafecai
Copy link
Author

cafecai commented May 6, 2019

/mnt/myRtspClient/example # ./complete_example rtsp://192.168.1.10/live.sdp
Start play rtsp://192.168.1.10/live.sdp
Then put video data into test_packet_recv.h264
RTSP/1.0 200 OK
CSeq: 1
Date: Thu Jan 1 01:08:45 1970
Public: OPTIONS, DESCRIBE, SETUP, PLAY, PAUSE, TEARDOWN
Server: rtsp_demo

RTSP/1.0 406 Not Acceptable
CSeq: 2
Date: Thu Jan 1 01:08:45 1970
Server: rtsp_demo

DoDESCRIBE error

@Ansersion
Copy link
Owner

According to the above info, the server maybe refuses to accept DESCRIBE command. Is your server on github? Maybe I could try to debug it.

@cafecai
Copy link
Author

cafecai commented May 7, 2019

This is the code of the server
https://github.com/cafecai/hisi_rtsp_demo

@cafecai
Copy link
Author

cafecai commented Jul 16, 2019

I solved this problem.
ErrorType RtspClient::DoDESCRIBE(string uri, bool http_tunnel_no_response)
{
....
Msg << Cmd << " " << RtspUri << " " << "RTSP/" << VERSION_RTSP << "\r\n";
Msg << "CSeq: " << ++RtspCSeq << "\r\n";
Msg << "User-Agent: my RTSP Client" << "\r\n";
Msg << "Accept: application/sdp" << "\r\n"; //Add this line of code
Msg << "\r\n";
....
}

@Ansersion
Copy link
Owner

Thanks for your support!

@sabazade
Copy link

I solved this problem. ErrorType RtspClient::DoDESCRIBE(string uri, bool http_tunnel_no_response) { .... Msg << Cmd << " " << RtspUri << " " << "RTSP/" << VERSION_RTSP << "\r\n"; Msg << "CSeq: " << ++RtspCSeq << "\r\n"; Msg << "User-Agent: my RTSP Client" << "\r\n"; Msg << "Accept: application/sdp" << "\r\n"; //Add this line of code Msg << "\r\n"; .... }

I have added the lines you mentioned, still got those errors. Mine stop on "CheckSockWritable()" which just return "CHECK_OK"!
I will be grateful if anyone could help me with it...

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants