Add MimeCodecs to mp4 Muxer

This commit is contained in:
Alexey Khit
2023-01-30 19:15:05 +03:00
parent c1d6adc189
commit 0f934be9b6
3 changed files with 9 additions and 5 deletions
+1 -1
View File
@@ -50,7 +50,7 @@ func (c *Segment) AddTrack(media *streamer.Media, track *streamer.Track) *stream
return nil
}
c.MimeType = muxer.MimeType(codecs)
c.MimeType = `video/mp4; codecs="` + muxer.MimeCodecs(codecs) + `"`
switch track.Codec.Name {
case streamer.CodecH264: