MF_SD_PROTECTED attribute
Indicates whether a stream contains protected content.
Data type
UINT32
Treat as a Boolean value.
Remarks
This attribute applies to stream descriptors. If the value of the attribute is TRUE, the stream contains protected content. If the value is FALSE, or the attribute is not set, the stream contains clear content.
Instead of checking each stream for this attribute, you can pass a presentation descriptor to the MFRequireProtectedEnvironment function. This function tests whether the presentation descriptor contains any protected streams.
A media source should set this attribute on the stream descriptor if the content requires the protected media path (PMP).
The GUID constant for this attribute is exported from mfuuid.lib.
Examples
// This function returns TRUE if the stream contains protected
// content. You can also call the MFRequireProtectedEnvironment
// function to test whether a presentation contains any streams
// with protected content.
BOOL StreamHasProtectedContent(IMFStreamDescriptor *pSD)
{
return MFGetAttributeUINT32(pSD, MF_SD_PROTECTED, FALSE);
}
Requirements
Requirement | Value |
---|---|
Minimum supported client |
Windows Vista [desktop apps | UWP apps] |
Minimum supported server |
Windows Server 2008 [desktop apps | UWP apps] |
Header |
|
See also