Ejemplo n.º 1
0
        public AudioFile(byte[] content)
        {
            this.content = content;
            var tag = new ID3v2Tag(new MemoryStream(content));

            if (tag.PictureList.Count != 0 && tag.PictureList.First().MimeType == PngMimeType)
            {
                image = tag.PictureList.First().PictureData;
            }

            identity = tag.TagFields().Any(x => x == "")
                ? UnknownIdentity
                : string.Join("_", tag.TagFields());
        }