update docs

This commit is contained in:
aler9
2022-02-11 20:28:40 +01:00
committed by Alessandro Ros
parent 1b2a78a744
commit 8e0b393a47
5 changed files with 9 additions and 9 deletions

View File

@@ -14,14 +14,14 @@ import (
type Track interface {
// ClockRate returns the track clock rate.
ClockRate() int
clone() Track
// GetControl returns the track control
// GetControl returns the track control.
GetControl() string
// SetControl returns the track control
// SetControl sets the track control.
SetControl(string)
url(*base.URL) (*base.URL, error)
// MediaDescription returns structured SDP media information
// MediaDescription returns the media description in SDP format.
MediaDescription() *psdp.MediaDescription
clone() Track
url(*base.URL) (*base.URL, error)
}
func newTrackFromMediaDescription(md *psdp.MediaDescription) (Track, error) {

View File

@@ -152,7 +152,7 @@ func (t *TrackAAC) url(contentBase *base.URL) (*base.URL, error) {
return trackURL(t, contentBase)
}
// MediaDescription returns the structured media information from the SDP
// MediaDescription returns the media description in SDP format.
func (t *TrackAAC) MediaDescription() *psdp.MediaDescription {
typ := strconv.FormatInt(int64(t.payloadType), 10)

View File

@@ -153,7 +153,7 @@ func (t *TrackGeneric) url(contentBase *base.URL) (*base.URL, error) {
return trackURL(t, contentBase)
}
// MediaDescription returns the structured media information from the SDP
// MediaDescription returns the media description in SDP format.
func (t *TrackGeneric) MediaDescription() *psdp.MediaDescription {
return &psdp.MediaDescription{
MediaName: psdp.MediaName{

View File

@@ -145,7 +145,7 @@ func (t *TrackH264) SetPPS(v []byte) {
t.pps = v
}
// MediaDescription returns the structured SDP media information
// MediaDescription returns the media description in SDP format.
func (t *TrackH264) MediaDescription() *psdp.MediaDescription {
typ := strconv.FormatInt(int64(t.payloadType), 10)

View File

@@ -83,7 +83,7 @@ func (t *TrackOpus) url(contentBase *base.URL) (*base.URL, error) {
return trackURL(t, contentBase)
}
// MediaDescription returns the structured media information from the SDP
// MediaDescription returns the media description in SDP format.
func (t *TrackOpus) MediaDescription() *psdp.MediaDescription {
typ := strconv.FormatInt(int64(t.payloadType), 10)