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

@@ -98,6 +98,11 @@ func (t *TrackH265) fillParamsFromMediaDescription(md *psdp.MediaDescription) er
return nil
}
// String returns the track codec.
func (t *TrackH265) String() string {
return "H265"
}
// ClockRate returns the track clock rate.
func (t *TrackH265) ClockRate() int {
return 90000