Add support AAC for RTSP

This commit is contained in:
Alexey Khit
2022-11-07 11:02:26 +03:00
parent d16ae0972f
commit e1bc30fab3
8 changed files with 92 additions and 25 deletions
+6
View File
@@ -35,6 +35,8 @@ const (
CodecMPA = "MPA" // payload: 14
)
const PayloadTypeMP4 byte = 255
func GetKind(name string) string {
switch name {
case CodecH264, CodecH265, CodecVP8, CodecVP9, CodecAV1, CodecJPEG:
@@ -151,6 +153,10 @@ func (c *Codec) String() string {
return s
}
func (c *Codec) IsMP4() bool {
return c.PayloadType == PayloadTypeMP4
}
func (c *Codec) Clone() *Codec {
clone := *c
return &clone