Fix info for WS/MP4

This commit is contained in:
Alexey Khit
2023-01-18 15:04:06 +03:00
parent 23f72d111e
commit 140014f2a6
2 changed files with 26 additions and 2 deletions
+5 -1
View File
@@ -71,7 +71,11 @@ func handlerWSMP4(tr *api.Transport, msg *api.Message) error {
return errors.New(api.StreamNotFound)
}
cons := &mp4.Segment{OnlyKeyframe: true}
cons := &mp4.Segment{
RemoteAddr: tr.Request.RemoteAddr,
UserAgent: tr.Request.UserAgent(),
OnlyKeyframe: true,
}
if codecs, ok := msg.Value.(string); ok {
log.Trace().Str("codecs", codecs).Msgf("[mp4] new WS/MP4 consumer")