-
Notifications
You must be signed in to change notification settings - Fork 186
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix generating media URL with leading slash in control attribute (blu…
- Loading branch information
Showing
2 changed files
with
11 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -54,6 +54,16 @@ func TestMediaURL(t *testing.T) { | |
mustParseURL("rtsps://myuser:[email protected]:554/"), | ||
mustParseURL("rtsps://myuser:[email protected]:554/path/trackID=7"), | ||
}, | ||
{ | ||
"absolute control, base url no trailing slash", | ||
[]byte("v=0\r\n" + | ||
"s= \r\n" + | ||
"m=video 0 RTP/AVP 96\r\n" + | ||
"a=rtpmap:96 H264/90000\r\n" + | ||
"a=control:/test"), | ||
mustParseURL("rtsp://myuser:[email protected]:554"), | ||
mustParseURL("rtsp://myuser:[email protected]:554/test"), | ||
}, | ||
{ | ||
"relative control", | ||
[]byte("v=0\r\n" + | ||
|