mirror of
https://github.com/aler9/gortsplib
synced 2025-10-29 17:51:50 +08:00
fix docs
This commit is contained in:
@@ -315,7 +315,7 @@ func (c *ConnClient) Describe(u *base.URL) (Tracks, *base.Response, error) {
|
|||||||
// build an URL by merging baseUrl with the control attribute from track.Media.
|
// build an URL by merging baseUrl with the control attribute from track.Media.
|
||||||
func (c *ConnClient) urlForTrack(baseUrl *base.URL, mode headers.TransportMode, track *Track) *base.URL {
|
func (c *ConnClient) urlForTrack(baseUrl *base.URL, mode headers.TransportMode, track *Track) *base.URL {
|
||||||
control := func() string {
|
control := func() string {
|
||||||
// if we're reading, get control from track ID
|
// if we're publishing, get control from track ID
|
||||||
if mode == headers.TransportModeRecord {
|
if mode == headers.TransportModeRecord {
|
||||||
return "trackID=" + strconv.FormatInt(int64(track.Id), 10)
|
return "trackID=" + strconv.FormatInt(int64(track.Id), 10)
|
||||||
}
|
}
|
||||||
@@ -347,7 +347,7 @@ func (c *ConnClient) urlForTrack(baseUrl *base.URL, mode headers.TransportMode,
|
|||||||
return newUrl
|
return newUrl
|
||||||
}
|
}
|
||||||
|
|
||||||
// control attribute contains a control attribute
|
// control attribute contains a relative control attribute
|
||||||
newUrl := baseUrl.Clone()
|
newUrl := baseUrl.Clone()
|
||||||
newUrl.AddControlAttribute(control)
|
newUrl.AddControlAttribute(control)
|
||||||
return newUrl
|
return newUrl
|
||||||
|
|||||||
Reference in New Issue
Block a user