From 8e0b393a478fd5ce258ffd0c0b9771a111a56ccc Mon Sep 17 00:00:00 2001 From: aler9 <46489434+aler9@users.noreply.github.com> Date: Fri, 11 Feb 2022 20:28:40 +0100 Subject: [PATCH] update docs --- track.go | 10 +++++----- track_aac.go | 2 +- track_generic.go | 2 +- track_h264.go | 2 +- track_opus.go | 2 +- 5 files changed, 9 insertions(+), 9 deletions(-) diff --git a/track.go b/track.go index 8fbb6eac..fed82e53 100644 --- a/track.go +++ b/track.go @@ -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) { diff --git a/track_aac.go b/track_aac.go index 194875df..59b81506 100644 --- a/track_aac.go +++ b/track_aac.go @@ -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) diff --git a/track_generic.go b/track_generic.go index cccf7212..39dd9513 100644 --- a/track_generic.go +++ b/track_generic.go @@ -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{ diff --git a/track_h264.go b/track_h264.go index 2055cdec..76ae4b2c 100644 --- a/track_h264.go +++ b/track_h264.go @@ -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) diff --git a/track_opus.go b/track_opus.go index 4b4e4bb9..99f7274e 100644 --- a/track_opus.go +++ b/track_opus.go @@ -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)