MediaTagInfo Class
Represents the metadata tags of a media file.
public sealed class MediaTagInfoConstructors
| Name | Description |
|---|---|
| MediaTagInfo() |
MediaTagInfo()
MediaTagInfo.cspublic MediaTagInfo()No documentation is available.
Properties
| Name | Description |
|---|---|
| Album | Gets or sets the album name. |
| AlbumArtist | Gets or sets the album artist. |
| Artist | Gets or sets the performing artist. |
| Bpm | Gets or sets the beats per minute. Must not be negative. |
| Comment | Gets or sets a comment or description. |
| Composer | Gets or sets the composer. |
| Conductor | Gets or sets the conductor. |
| Copyright | Gets or sets the copyright information. |
| CustomFields | Gets the collection of custom or format-specific metadata fields. |
| Description | Gets or sets a short description of the content. Only MP4 files store it. |
| DiscNumber | Gets or sets the disc number. Must not be negative. |
| DiscTotal | Gets or sets the total number of discs. Must not be negative. |
| Duration | Gets or sets the media duration. |
| Format | Gets or sets the source format that the tags were read from. |
| Genre | Gets or sets the genre. |
| IsCompilation | Gets or sets whether this track is part of a compilation. |
| Isrc | Gets or sets the ISRC (International Standard Recording Code). |
| LongDescription | Gets or sets a long description of the content. Only MP4 files store it. |
| Lyrics | Gets or sets the track lyrics. |
| MediaKind | Gets or sets the kind of media, such as a movie or a TV show. Only MP4 files store it. |
| MusicBrainzAlbumId | Gets or sets the MusicBrainz album ID. |
| MusicBrainzArtistId | Gets or sets the MusicBrainz artist ID. |
| MusicBrainzReleaseGroupId | Gets or sets the MusicBrainz release group ID. |
| MusicBrainzTrackId | Gets or sets the MusicBrainz recording ID. |
| NativeFields | Gets or sets the frames, items and attributes of the tag that no other property represents, as stored in the file. |
| Pictures | Gets the list of embedded pictures (album art). |
| ReplayGain | Gets or sets ReplayGain loudness normalization values. |
| Title | Gets or sets the title of the track. |
| TrackNumber | Gets or sets the track number. Must not be negative. |
| TrackTotal | Gets or sets the total number of tracks. Must not be negative. |
| TvEpisode | Gets or sets the TV episode number. Must not be negative. Only MP4 files store it. |
| TvEpisodeId | Gets or sets the identifier of the TV episode, such as S01E02. Only MP4 files store it. |
| TvNetwork | Gets or sets the TV network that broadcast the episode. Only MP4 files store it. |
| TvSeason | Gets or sets the TV season number. Must not be negative. Only MP4 files store it. |
| TvShow | Gets or sets the name of the TV show. Only MP4 files store it. |
| VideoHeight | Gets or sets the height, in pixels, of the video stream. It is read from the stream and never written. |
| VideoWidth | Gets or sets the width, in pixels, of the video stream. It is read from the stream and never written. |
| Year | Gets or sets the year of release. Must be between 0 and 9999. |
Album
MediaTagInfo.csAlbumArtist
MediaTagInfo.csArtist
MediaTagInfo.csGets or sets the beats per minute. Must not be negative.
public int? Bpm { get; set; }Comment
MediaTagInfo.csComposer
MediaTagInfo.csConductor
MediaTagInfo.csCopyright
MediaTagInfo.csCustomFields
MediaTagInfo.csGets the collection of custom or format-specific metadata fields.
public IDictionary<string, string> CustomFields { get; }Property value
Description
MediaTagInfo.csDiscNumber
MediaTagInfo.csGets or sets the disc number. Must not be negative.
public int? DiscNumber { get; set; }DiscTotal
MediaTagInfo.csGets or sets the total number of discs. Must not be negative.
public int? DiscTotal { get; set; }Duration
MediaTagInfo.csFormat
MediaTagInfo.csGets or sets the source format that the tags were read from.
public MediaFormat? Format { get; set; }Property value
Genre
MediaTagInfo.csIsCompilation
MediaTagInfo.csIsrc
MediaTagInfo.csLongDescription
MediaTagInfo.csLyrics
MediaTagInfo.csMediaKind
MediaTagInfo.csGets or sets the kind of media, such as a movie or a TV show. Only MP4 files store it.
public MediaKind? MediaKind { get; set; }Property value
MusicBrainzAlbumId
MediaTagInfo.csMusicBrainzArtistId
MediaTagInfo.csMusicBrainzReleaseGroupId
MediaTagInfo.csMusicBrainzTrackId
MediaTagInfo.csNativeFields
MediaTagInfo.csGets or sets the frames, items and attributes of the tag that no other property represents, as stored in the file.
public IList<MediaNativeField>? NativeFields { get; set; }Property value
Remarks
Reading sets a list, empty when the format has none. Writing a list replaces the fields of the tag type the format writes, and ignores the fields of other tag types. Writing null keeps the fields of the existing file, which is how a new MediaTagInfo changes the common fields without removing the format-specific ones.
A field that a property represents, such as the ID3v2 TIT2 frame, cannot be written as a native field: the write fails with MediaTagError.InvalidTagData. User-defined text fields (ID3v2 TXXX frames, MP4 freeform items, APEv2 text items and ASF text attributes) are in MediaTagInfo.CustomFields.
Pictures
MediaTagInfo.csGets the list of embedded pictures (album art).
public IList<MediaPicture> Pictures { get; }Property value
ReplayGain
MediaTagInfo.csGets or sets ReplayGain loudness normalization values.
public ReplayGainInfo? ReplayGain { get; set; }Property value
Title
MediaTagInfo.csTrackNumber
MediaTagInfo.csGets or sets the track number. Must not be negative.
public int? TrackNumber { get; set; }TrackTotal
MediaTagInfo.csGets or sets the total number of tracks. Must not be negative.
public int? TrackTotal { get; set; }TvEpisode
MediaTagInfo.csGets or sets the TV episode number. Must not be negative. Only MP4 files store it.
public int? TvEpisode { get; set; }TvEpisodeId
MediaTagInfo.csTvNetwork
MediaTagInfo.csTvSeason
MediaTagInfo.csGets or sets the TV season number. Must not be negative. Only MP4 files store it.
public int? TvSeason { get; set; }TvShow
MediaTagInfo.csVideoHeight
MediaTagInfo.csVideoWidth
MediaTagInfo.csYear
MediaTagInfo.csGets or sets the year of release. Must be between 0 and 9999.
public int? Year { get; set; }