Use BaseUri as the request Url when making the GET_PARAMETER request #12
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This ensures that the Url used is the one returned from the DESCRIBE request
This was the previous behaviour when speaking to a Live555 RTSP Server
Request:
V/Sender: DESCRIBE rtsp://user:[email protected]:554/video?input=0&transmission=unicast RTSP/1.0 uri="rtsp://user:[email protected]:554/video?input=0&transmission=unicast"
Response:
V/Receiver: RTSP/1.0 200 OK Content-Base: rtsp://127.0.0.1/video?input=0&profile=primary&transmission=unicast/
after some time streaming
Request:
V/Sender: GET_PARAMETER rtsp://user:[email protected]:554/video?input=0&transmission=unicast RTSP/1.0 uri="rtsp://user:[email protected]:554/video?input=0&transmission=unicast"
Response:
V/Receiver: RTSP/1.0 404 Not Found
As you can see
rtsp://127.0.0.1/video?input=0&transmission=unicast/
is missing theprofile=primary
part of the request string resulting in a 404