Add support HTTP JPEG and MJPEG sources

This commit is contained in:
Alexey Khit
2022-12-01 13:01:48 +03:00
parent 684878b4b1
commit a16d8acc30
18 changed files with 421 additions and 106 deletions
+3 -3
View File
@@ -37,7 +37,7 @@ const (
CodecELD = "ELD" // AAC-ELD
)
const PayloadTypeMP4 byte = 255
const PayloadTypeRAW byte = 255
func GetKind(name string) string {
switch name {
@@ -139,8 +139,8 @@ func (c *Codec) String() string {
return s
}
func (c *Codec) IsMP4() bool {
return c.PayloadType == PayloadTypeMP4
func (c *Codec) IsRTP() bool {
return c.PayloadType != PayloadTypeRAW
}
func (c *Codec) Clone() *Codec {