Lyrics3V2

MP3RootPackage.Lyrics3V2 property

Mendapat atau menyetel tag metadata Lyrics3v2.

public LyricsTag Lyrics3V2 { get; set; }

Nilai properti

Tag metadata Lyrics3v2.

Contoh

Contoh ini menunjukkan cara memperbarui tag Lirik di file MP3

using (Metadata metadata = new Metadata(Constants.MP3WithLyrics))
{
    var root = metadata.GetRootPackage<MP3RootPackage>();

    if (root.Lyrics3V2 == null)
    {
        root.Lyrics3V2 = new LyricsTag();
    }

    root.Lyrics3V2.Lyrics = "[00:01]Test lyrics";
    root.Lyrics3V2.Artist = "test artist";
    root.Lyrics3V2.Album = "test album";
    root.Lyrics3V2.Track = "test track";

    // Anda dapat menambahkan bidang khusus sepenuhnya ke tag
    root.Lyrics3V2.Set(new LyricsField("ABC", "custom value"));

    // ...

    metadata.Save(Constants.OutputMp3);
}

Lihat juga