MFSampleExtension_Content_KeyID attribute

Sets the Key ID for the sample.

Data type

GUID

Examples

The following example shows how to set the Key ID for the sample.

// m_spSample is a IMFSample
// guidKID is a GUID

m_spSample->SetGUID( MFSampleExtension_Content_KeyID, guidKID );

Requirements

Requirement Value
Minimum supported client
Windows 8.1 [desktop apps | UWP apps]
Minimum supported server
Windows Server 2012 R2 [desktop apps | UWP apps]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

IMFSample

MFSampleExtension_Encryption_SubSampleMappingSplit