add Track.String() method

This commit is contained in:
aler9
2022-11-19 20:39:50 +01:00
parent a682c228b2
commit e6477ceacc
31 changed files with 116 additions and 1 deletions

View File

@@ -31,6 +31,11 @@ func newTrackPCMUFromMediaDescription(
}, nil
}
// String returns the track codec.
func (t *TrackPCMU) String() string {
return "PCMU"
}
// ClockRate returns the track clock rate.
func (t *TrackPCMU) ClockRate() int {
return 8000