I have the following code:
memoryStream
is a stream that reads an aac
file from an HLS stream. So it will be a packed AAC with ID3 tags in the beginning.
using var tagFile= TagLib.File.Create(new StreamFile(memoryStream), "audio/aac", ReadStyle.Average);
var id3v2tag= (TagLib.Id3v2.Tag)tagFile.GetTag(TagTypes.Id3v2);
var id3v1tag = (TagLib.Id3v1.Tag)tagFile.GetTag(TagTypes.Id3v1);
The tagFile.TagTypesOnDisk
shows that its' of an Id3v2 tag. However, when I inspect id3v2tag
, there aren't any properties set in there. Instead, it seems that id3v1tag
is populated instead.
This is causing me issues as I want to be able to read a custom tag we have in there and the only way to do that is if we can use a TagLib.Id3v2.Tag
type.
Is there something missing?