MF_PD_PREFERRED_LANGUAGE attribute

Contains the preferred RFC 1766 language of the media source.

Data type

WCHAR

Get/set

To get this attribute, call IMFAttributes::GetString.

To set this attribute, call IMFAttributes::Settring.

Applies to

IMFPresentationDescriptor

Remarks

The MF_PD_PREFERRED_LANGUAGE attribute is optional. An application can set this attribute on a media source (such as a network source) to specify its preferred language.

The GUID constant for this attribute is exported from mfuuid.lib.

Requirements

Requirement Value
Minimum supported client
Windows 7 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 R2 [desktop apps | UWP apps]
Header
Mfidl.h

See also

Alphabetical List of Media Foundation Attributes

Presentation Descriptor Attributes