Fix mp4f consumer

This commit is contained in:
Alexey Khit
2023-01-24 21:05:51 +03:00
parent 15777a3d94
commit c43530fbd3
+5
View File
@@ -14,6 +14,7 @@ import (
type Consumer struct {
streamer.Element
Medias []*streamer.Media
UserAgent string
RemoteAddr string
@@ -26,6 +27,10 @@ type Consumer struct {
}
func (c *Consumer) GetMedias() []*streamer.Media {
if c.Medias != nil {
return c.Medias
}
return []*streamer.Media{
{
Kind: streamer.KindVideo,