CodecQuery CodecQuery CodecQuery Class

Definition

Provides the FindAllAsync method which allows you to enumerate all media codecs installed on the system.

public sealed class CodecQuery : ICodecQuerypublic sealed class CodecQuery : ICodecQueryPublic NotInheritable Class CodecQuery Implements ICodecQuery
Attributes
Windows 10 requirements
Device family
Windows 10 Creators Update (introduced v10.0.15063.0)
API contract
Windows.Foundation.UniversalApiContract (introduced v4)

Constructors

CodecQuery() CodecQuery() CodecQuery()

Initializes a new instance of the CodecQuery class.

public CodecQuery()public CodecQuery()Public Sub New()
Attributes

Methods

FindAllAsync(CodecKind, CodecCategory, String) FindAllAsync(CodecKind, CodecCategory, String) FindAllAsync(CodecKind, CodecCategory, String)

Returns a read-only list of all media codecs installed on the system that meet the specified requirements.

public IAsyncOperation<IVectorView<CodecInfo>> FindAllAsync(CodecKind kind, CodecCategory category, String subType)public IAsyncOperation<IVectorView<CodecInfo>> FindAllAsync(CodecKind kind, CodecCategory category, String subType)Public Function FindAllAsync(kind As CodecKind, category As CodecCategory, subType As String) As IAsyncOperation( Of IVectorViewCodecInfo )
Parameters
kind
CodecKind CodecKind CodecKind

A value that specifies whether the method should return codecs that operate on video or audio data.

category
CodecCategory CodecCategory CodecCategory

A value that specifies whether the method should return codecs that are encoders or decoders.

subType
System.String System.String System.String

A value specifying the media encoding subtype that all returned codecs must support. This value can be a string representation of one of the subtype GUIDs listed in Audio Subtype GUIDs or Video Subtyp GUIDs. The CodecSubtypes class provides properties for most supported media subtypes that return the string representation of the subtype GUID. You can also specify a FOURCC code for this parameter. For more information, see FOURCC Codes. To specify that all codecs of the specified kind and category should be returned, regardless of what media subtypes are supported, specify an empty string ("") or null for this parameter.

Returns
Attributes