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

pause #10

Open
gczhcm opened this issue Sep 18, 2018 · 5 comments
Open

pause #10

gczhcm opened this issue Sep 18, 2018 · 5 comments

Comments

@gczhcm
Copy link

gczhcm commented Sep 18, 2018

why play after pause, rtp can't find "$" or "R"? I find error is happened in myTCPTransmitter.cpp ,74 line ( if(m_httpTunnelHeaderBuffer[0] != '$' && m_httpTunnelHeaderBuffer[0] != 'R'))

@Ansersion Ansersion reopened this Sep 19, 2018
@Ansersion
Copy link
Owner

Just now I have fixed the bug. Maybe you could try the newest code.
Thanks for your reports.

@gczhcm
Copy link
Author

gczhcm commented Sep 19, 2018

pe p39 lyfb87 g54 63 ud
I wonder what makes it like this. If you throw it away like this, it may lose the I frame.
this file is socket cache.
socket.txt

@Ansersion
Copy link
Owner

Refer to https://tools.ietf.org/html/rfc7826#page-101

The first byte '$' means the media data length follow. And then the media data will be received in next packet which is the RTP packet.

The first byte 'R' means the RTSP response.

API 'recv(...MSG_PEEK)' do not pop the bytes we read, so we clear them manually so that we will not be blocked when getting bad data.

@Ansersion
Copy link
Owner

Ansersion commented Sep 19, 2018

It will throw the RTSP response if you have not set the callback.

@Ansersion
Copy link
Owner

Ansersion commented Sep 19, 2018

Bye the way, there is a new parameter for DoXXX API: http_tunnel_no_response.
Like: DoPAUSE(string media_type, bool http_tunnel_no_response = false);
You should carefully set it, or you will lose the data. The simplest way is just setting it 'true'.

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

2 participants