Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
Windows 8用のメディアプレーヤーを開発していますが、WindowsMediaPlayerメディアライブラリのすべての音楽を読む必要があります。
WinRT C#でそれを行うにはどうすればよいですか?
ありがとう
ユーザーの音楽ライブラリ内のすべての音楽ファイルを取得できるMusic Library契約を選択する必要があります。Appmanifest>Capabilitiesただし、ユーザーはアプリにミュージック ライブラリの使用許可をいつでも拒否できます。
Music Library
Appmanifest>Capabilities
var folder = Windows.Storage.KnownFolders.MusicLibrary; var files = await folder.GetFilesAsync();