MetadataPicture 对象

[与此页面关联的功能(Windows 媒体播放器 SDK)是旧版功能。 它已被 MediaPlayer 取代。 MediaPlayer 已针对Windows 10和Windows 11进行了优化。 Microsoft 强烈建议新代码尽可能使用 MediaPlayer 而不是 Windows 媒体播放器 SDK。 如果可能,Microsoft 建议重写使用旧 API 的现有代码以使用新 API。]

MetadataPicture 对象提供了一种检索 WM/Picture 元数据属性值的方法。 此属性对应于数字媒体文件中包含的专辑插图,而不是通过 Internet 下载的专辑封面。

MetadataPicture 对象支持以下属性。

属性 描述
描述 检索元数据图像的说明。
mimeType 检索元数据图像的 MIME 类型。
pictureType 检索元数据图像的图片类型。
URL 仅限内部使用。

 

通过以下方法访问 MetadataPicture 对象。

对象 方法
媒体 getItemInfoByType

 

为了便于说明, player.currentMedia.getItemInfoByType(name, language, index) 用于参考语法部分。

另请参阅

用于脚本的对象模型参考