2

WMPLib を使用して C# で音楽プレーヤーを作成しようとしています。これが私が持っているものです:

WMPLib.WindowsMediaPlayer song = new WMPLib.WindowsMediaPlayer();
song.URL = file;  //the path to a mp3 file
song.controls.stop();
Console.WriteLine(song.currentMedia.getItemInfo("Title"));
Console.WriteLine(song.currentMedia.getItemInfo("Artist"));
Console.WriteLine(song.currentMedia.getItemInfo("Album"));

「song.currentMedia.getItemInfo("Title")」のみが機能します (タイトルを返します)。Artist と Album が ""(nothing) を返すというのは、何が間違っているのでしょうか?

4

1 に答える 1