Class MetadataEditor
Definition
- Namespace:
- Tizen.Multimedia
- Assembly:
- Tizen.Multimedia.Metadata.dll
Provides a means to edit the metadata of MP3 and MP4 files. Since 6.0, WAV, FLAC, OGG files are supported as well.
public class MetadataEditor : IDisposable
- Inheritance
-
objectMetadataEditor
Constructors
View SourceMetadataEditor(string)
Initializes a new instance of the MetadataEditor class with the specified path.
Declaration
public MetadataEditor(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the media file to edit the metadata. |
Exceptions
Type | Condition |
---|---|
FileFormatException | The file is not supported. |
Properties
View SourceAlbum
Gets or sets the album name of media.
Declaration
public string Album { get; set; }
Property Value
Type | Description |
---|---|
string |
Artist
Gets or sets the artist of media.
Declaration
public string Artist { get; set; }
Property Value
Type | Description |
---|---|
string |
Author
Gets or sets the author of media.
Declaration
public string Author { get; set; }
Property Value
Type | Description |
---|---|
string |
Comment
Gets or sets the comment of media.
Declaration
public string Comment { get; set; }
Property Value
Type | Description |
---|---|
string |
Conductor
Gets or sets the conductor of media.
Declaration
public string Conductor { get; set; }
Property Value
Type | Description |
---|---|
string |
Copyright
Gets or sets the copyright of media.
Declaration
public string Copyright { get; set; }
Property Value
Type | Description |
---|---|
string |
Date
Gets or sets the date of media.
Declaration
public string Date { get; set; }
Property Value
Type | Description |
---|---|
string |
Remarks
If the media contains the ID3 tag, this refers to the recorded date. If the media is a mp4 format, this refers to the year, and the value to set will be converted into integer.
Description
Gets or sets the description of media.
Declaration
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string |
Genre
Gets or sets the genre of media.
Declaration
public string Genre { get; set; }
Property Value
Type | Description |
---|---|
string |
PictureCount
Gets the count of album arts of media.
Declaration
public int PictureCount { get; }
Property Value
Type | Description |
---|---|
int |
Title
Gets or sets the title of media.
Declaration
public string Title { get; set; }
Property Value
Type | Description |
---|---|
string |
TrackNumber
Gets or sets the track number of media.
Declaration
public string TrackNumber { get; set; }
Property Value
Type | Description |
---|---|
string |
UnsyncLyrics
Gets or sets the unsynchronized lyrics of media.
Declaration
public string UnsyncLyrics { get; set; }
Property Value
Type | Description |
---|---|
string |
Methods
View SourceAddPicture(string)
Appends the picture to the media file.
Declaration
public void AddPicture(string path)
Parameters
Type | Name | Description |
---|---|---|
string | path | The path of the picture for adding to the metadata. |
Exceptions
Type | Condition |
---|---|
FileFormatException | The specified file is not supported. |
Commit()
Writes the modified metadata to the media file.
Declaration
public void Commit()
Dispose()
Releases all resources used by the MetadataEditor object.
Declaration
public void Dispose()
Dispose(bool)
Releases the resources used by the MetadataEditor object.
Declaration
protected virtual void Dispose(bool disposing)
Parameters
Type | Name | Description |
---|---|---|
bool | disposing | true to release both managed and unmanaged resources; false to release only unmanaged resources. |
~MetadataEditor()
Finalizes an instance of the MetadataEditor class.
Declaration
protected ~MetadataEditor()
GetPicture(int)
Gets the artwork image in the media file.
Declaration
public Artwork GetPicture(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the picture to import. |
Returns
Type | Description |
---|---|
Artwork | The artwork included in the media file. |
RemovePicture(int)
Removes the picture from the media file.
Declaration
public void RemovePicture(int index)
Parameters
Type | Name | Description |
---|---|---|
int | index | The index of the picture to remove. |