MFSampleExtension_Token attribute

Contains a pointer to the token that was provided to the IMFMediaStream::RequestSample method.

Data type

IUnknown*

Get/set

To get this attribute, call IMFAttributes::GetUnknown.

To set this attribute, call IMFAttributes::SetUnknown.

Applies to

IMFSample

Remarks

This attribute applies to media samples. The value of the attribute is the IUnknown pointer that is passed to the pToken parameter of the RequestSample method. The caller uses this attribute to track the status of the request.

If you are writing a custom media source, set this attribute on the sample when the media stream delivers a sample in response to the RequestSample method, unless the value of pToken is NULL.

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

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps | UWP apps]
Minimum supported server
Windows Server 2008 [desktop apps | UWP apps]
Header
Mfapi.h

See also

Alphabetical List of Media Foundation Attributes

Sample Attributes

Media Samples