mirror of
https://github.com/aler9/gortsplib
synced 2025-10-08 08:30:06 +08:00
update docs
This commit is contained in:
10
track.go
10
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) {
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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{
|
||||
|
@@ -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)
|
||||
|
||||
|
@@ -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)
|
||||
|
||||
|
Reference in New Issue
Block a user