首页 > 解决方案 > C# UWP 设置 MP3 缩略图

问题描述

在 C# UWP 中是否有可能设置 MP3 文件(即 StorageFile 的一种类型)的 COVER 图像?

我目前有一个文件(StorageFile)的引用,可以读取文件的属性(file.Properties.GetMusicPropertiesAsync()),我想用BitmapImage设置这个“媒体文件”的图像。

标签: c#uwp

解决方案


您可以使用 taglib 访问文件的标记属性。检查这里https://www.nuget.org/packages/taglib/

这里有一些关于使用库https://csharp.hotexamples.com/examples/-/TagLib.File/-/php-taglib.file-class-examples.html的例子


推荐阅读