Update stream info for MP4/MSE/HLS

This commit is contained in:
Alexey Khit
2023-07-08 09:32:54 +03:00
parent 52a4fc329c
commit fded87aa33
5 changed files with 8 additions and 2 deletions
+4 -2
View File
@@ -14,7 +14,9 @@ import (
type Consumer struct {
core.Listener
Medias []*core.Media
Medias []*core.Media
Desc string
UserAgent string
RemoteAddr string
@@ -191,7 +193,7 @@ func (c *Consumer) Start() {
func (c *Consumer) MarshalJSON() ([]byte, error) {
info := &core.Info{
Type: "MP4 passive consumer",
Type: c.Desc + " passive consumer",
RemoteAddr: c.RemoteAddr,
UserAgent: c.UserAgent,
Medias: c.Medias,