Make GetProfileLevelID func more smarter

This commit is contained in:
Alexey Khit
2023-02-06 20:53:55 +03:00
parent 497594f53f
commit b05cbdf3d3
2 changed files with 30 additions and 17 deletions
+1 -7
View File
@@ -66,13 +66,7 @@ func (c *Consumer) AddTrack(media *streamer.Media, track *streamer.Track) *strea
c.mimeType += ","
}
// TODO: fixme
// some devices won't play high level
if stream.RecordInfo.AVCLevelIndication <= 0x29 {
c.mimeType += "avc1." + h264.GetProfileLevelID(codec.FmtpLine)
} else {
c.mimeType += "avc1.640029"
}
c.mimeType += "avc1." + h264.GetProfileLevelID(codec.FmtpLine)
c.streams = append(c.streams, stream)