Rewrite WS+MP4 format to keyframes stream

This commit is contained in:
Alexey Khit
2023-01-15 00:12:26 +03:00
parent 39662e10af
commit a1a73f7b45
3 changed files with 28 additions and 33 deletions
+1 -1
View File
@@ -68,7 +68,7 @@ func handlerWSMP4(tr *api.Transport, msg *api.Message) error {
return errors.New(api.StreamNotFound)
}
cons := &mp4.Segment{}
cons := &mp4.Segment{OnlyKeyframe: true}
if codecs, ok := msg.Value.(string); ok {
log.Trace().Str("codecs", codecs).Msgf("[mp4] new WS/MP4 consumer")