Closed goddoro closed 3 months ago
Hmmm we should actually send Accept: application/sdp
in there. You can quickly change the line method sendDescribeRequest
in RtspClient
to incorporate the Accept tag.
public void sendDescribeRequest(Uri uri, @Nullable String sessionId) {
sendRequest(
getRequestWithCommonHeaders(
METHOD_DESCRIBE, sessionId, /* additionalHeaders= */ ImmutableMap.of(
RtspHeaders.ACCEPT, "application/sdp"
), uri));
}
Hi @claincly ,
Fortunately, I found this issue,
I'm currently facing a similar problem.
The camera I'm using doesn't respond to a DESCRIBE
request when the Accept
header is missing.
I applied the changes you proposed in https://github.com/google/ExoPlayer/issues/10919#issuecomment-1380439854 - and it started working.
Do you think the Accept: application/sdp
header can be sent by default for a DESCRIBE
request?
If so what would be the next steps in fixing this problem? should I just create a PR in androidx/media
repo?
Hey @mk868 we added it (as you can see from the commit), thanks for reaching out. I'll close the issue now
Thank you!
When using DESCRIBE method, if the protocol message doesn't include 'Accept' data, exoplayer can't get server response. How can I add 'Accept: application/sdp' data when using "DESCRIBE" method? or should I fix RTSP server feature?