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

FIX an issue about the 'client_port' parameter in RtspServer #276

Merged
merged 1 commit into from
Feb 8, 2019

Conversation

KentVu
Copy link
Contributor

@KentVu KentVu commented Apr 17, 2018

RtspServer responds to client's setup request with unexpected client_port parameter, leading some clients unable to play.

  • Reason: The server is not accepting SETUP request with client_port parameter (in 'transport' header) that's not specified in range format. It turns out rfc2326 specifies the range specification is optional (see section 12.39, page 58).
  • FIX: If client's not specifying port range, use the specified RTP port + 1.

I've tried this pull request to ExoPlayer. It didn't work until I fix this in RtspServer. It seems not accepting the server's specified port that's different from its chosen port.

…) is optional in RtspServer

* If not specified then use the specified RTP port + 1.
@KentVu KentVu changed the title The 'client_port' parameter's range specification (i.e RTCP port part… FIX an issue about the 'client_port' parameter in RtspServer Apr 17, 2018
@KentVu
Copy link
Contributor Author

KentVu commented Apr 17, 2018

@fyhertz please confirm if there are no other similar implications about the port parameter. Since RFC2326 is not forcing the range part as mentioned.

NoelAlgora pushed a commit to ivangulyk/DeviceToDeviceStreamingAndroid that referenced this pull request Jan 13, 2019
@fyhertz fyhertz merged commit 3a78d22 into fyhertz:master Feb 8, 2019
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

Successfully merging this pull request may close these issues.

2 participants