mirror of
https://github.com/aler9/gortsplib
synced 2025-10-12 18:40:07 +08:00
client: build track URLs by using Content-Base, when provided by server
This commit is contained in:
@@ -113,16 +113,3 @@ func (u *URL) RTSPPathAndQuery() (string, bool) {
|
||||
|
||||
return pathAndQuery, true
|
||||
}
|
||||
|
||||
// AddControlAttribute adds a control attribute to a RTSP url.
|
||||
func (u *URL) AddControlAttribute(controlPath string) {
|
||||
if controlPath[0] != '?' {
|
||||
controlPath = "/" + controlPath
|
||||
}
|
||||
|
||||
// insert the control attribute at the end of the url
|
||||
// if there's a query, insert it after the query
|
||||
// otherwise insert it after the path
|
||||
nu, _ := ParseURL(u.String() + controlPath)
|
||||
*u = *nu
|
||||
}
|
||||
|
Reference in New Issue
Block a user