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 { type Track interface {
// ClockRate returns the track clock rate. // ClockRate returns the track clock rate.
ClockRate() int ClockRate() int
clone() Track // GetControl returns the track control.
// GetControl returns the track control
GetControl() string GetControl() string
// SetControl returns the track control // SetControl sets the track control.
SetControl(string) SetControl(string)
url(*base.URL) (*base.URL, error) // MediaDescription returns the media description in SDP format.
// MediaDescription returns structured SDP media information
MediaDescription() *psdp.MediaDescription MediaDescription() *psdp.MediaDescription
clone() Track
url(*base.URL) (*base.URL, error)
} }
func newTrackFromMediaDescription(md *psdp.MediaDescription) (Track, 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) 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 { func (t *TrackAAC) MediaDescription() *psdp.MediaDescription {
typ := strconv.FormatInt(int64(t.payloadType), 10) 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) 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 { func (t *TrackGeneric) MediaDescription() *psdp.MediaDescription {
return &psdp.MediaDescription{ return &psdp.MediaDescription{
MediaName: psdp.MediaName{ MediaName: psdp.MediaName{

View File

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