mirror of
https://github.com/aler9/gortsplib
synced 2025-10-20 21:59:36 +08:00
add Track.String() method
This commit is contained in:
@@ -119,6 +119,11 @@ func (t *TrackGeneric) Init() error {
|
||||
return nil
|
||||
}
|
||||
|
||||
// String returns the track codec.
|
||||
func (t *TrackGeneric) String() string {
|
||||
return "Generic"
|
||||
}
|
||||
|
||||
// ClockRate returns the track clock rate.
|
||||
func (t *TrackGeneric) ClockRate() int {
|
||||
return t.clockRate
|
||||
|
Reference in New Issue
Block a user