定义一个扩展,使应用能够从 Microsoft Store 安装媒体编解码器。
元素层次结构
<包>
<应用程序>
<应用程序>
<扩展>
<uap4:Extension>
<uap4:MediaCodec>
语法
<uap4:MediaCodec
DisplayName = 'A string with a value between 1 and 256 characters in length. This string is localizable.'
Description = 'A string between 1 and 2048 characters in length.'
Category = 'A string that can have one of the following values: "audioDecoder", "audioEncoder","videoDecoder", or "videoEncoder".'
AppServiceName = 'An optional string with a value between 2 and 39 characters in length that consists of alphanumeric characters, periods (except for the first character), and dashes only.'
wincap3:ActivatableClassId = 'A string with a value between 1 and 255 characters in length.'
wincap3:Path = 'A string with a value between 1 and 256 characters in length that cannot contain these characters: <, >, ", |, ?, or *.'
wincap3:ProcessorArchitecture = 'A string value that can be one of the following: "x86", "x64", "arm", "arm64", or "neutral".' >
<!-- Child elements -->
uap4:MediaEncodingProperties
</uap4:MediaCodec>
密钥
? 可选 (零个或一个)
特性和元素
属性
| 属性 |
说明 |
数据类型 |
必须 |
默认值 |
| DisplayName |
编解码器的友好名称。 |
一个字符串,其值长度介于 1 到 256 个字符之间。 此字符串可本地化。 |
是 |
|
| 说明 |
编解码器的说明。 |
长度介于 1 到 2048 个字符之间的字符串。 |
是 |
|
| 类别 |
编解码器的类别。 |
可以具有以下值之一的字符串: audioDecoder、 audioEncoder、videoDecoder 或 videoEncoder。 |
是 |
|
| AppServiceName |
作为编解码器启动的应用服务。 |
一个可选字符串,其值长度介于 2 到 39 个字符之间,由字母数字字符、句点 ((第一个字符) 除外)和仅短划线组成。 |
否 |
|
| rescap3:ActivatableClassId |
与此媒体内容关联的类 ID。 |
一个字符串,其值长度介于 1 到 255 个字符之间。 |
否 |
|
| rescap3:Path |
媒体内容的路径。 |
一个字符串,其值长度在 1 到 256 个字符之间,不能包含以下字符:<、、>"、|?、 或 *。 |
否 |
|
| rescap3:ProcessorArchitecture |
用于媒体内容的处理器体系结构。 |
可以是下列值之一的字符串值: x86、 x64、 arm、 arm64 或 neutral。 |
否 |
|
子元素
父元素
要求
| 项 |
值 |
| Namespace |
http://schemas.microsoft.com/appx/manifest/uap/windows10/4 |
| Minimum OS Version |
Windows 10版本 1703 (内部版本 15063) |