rename Format.String() into Format.Codec() (#307)

This commit is contained in:
Alessandro Ros
2023-06-09 12:42:32 +02:00
committed by GitHub
parent ccf42f49c7
commit 9b4cdbe7ab
36 changed files with 182 additions and 55 deletions

View File

@@ -17,11 +17,14 @@ func getCodecAndClock(rtpMap string) (string, string) {
}
// Format is a RTP format of a media.
// It defines a codec and a payload type used to transmit the media.
// It defines a codec and a payload type to transmit the media.
type Format interface {
unmarshal(payloadType uint8, clock string, codec string, rtpmap string, fmtp map[string]string) error
// String returns a description of the format.
// Codec returns the codec name.
Codec() string
// Deprecated: replaced by Codec().
String() string
// ClockRate returns the clock rate.