MF_BYTESTREAM_DURATION attribute

Specifies the duration of a byte stream, in 100-nanosecond units.

Data type

UINT64

Treat as a LONGLONG value.

Remarks

This attribute is optional. If the object that creates the byte stream can determine the duration, it can set this attribute. (For example, in a network stream, the duration might be part of the session description.)

To get the attribute value, call QueryInterface on the byte stream to get a pointer to the IMFAttributes interface.

This attribute is a signed value, although it is stored as a UINT64.

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
Mfobjects.h (include Mfidl.h)

See also

Alphabetical List of Media Foundation Attributes

Byte Stream Attributes

IMFAttributes::GetUINT64

IMFAttributes::SetUINT64

IMFByteStream