MF_PD_ASF_SCRIPT attribute

Specifies a list of script commands and the parameters for an Advanced Systems Format (ASF) file. This attribute corresponds to the Script Command Object in the ASF header, defined in the ASF specification.

Data type

Byte array

Remarks

This attribute applies to presentation descriptors for ASF content.

The IMFASFContentInfo::GeneratePresentationDescriptor method creates the presentation descriptor and generates this attribute from the Script Command Object header. The following table shows the format of the blob:

Script Command Object field Data type Size Description
Commands Count DWORD 4 bytes Number of script commands
Command Type, Commands BYTE[] Varies Array of script commands

 

The first DWORD is the number of script commands, followed by an array of commands. Each script command has the following format:

Script Command Object field Data type Size Description
Command Name Length DWORD 4 bytes Size of the command string, in bytes, including the NULL character.
Command Name WCHAR[] Varies Null-terminated string that contains the script command.
Command Type Name Length DWORD 4 bytes Size of the command type string, in bytes, including the NULL character.
Command Type Name WCHAR[] Varies Null-terminated string that contains the command type.
Presentation Time DWORD 4 bytes Presentation time of the command in milliseconds.

 

Requirements

Requirement Value
Minimum supported client
Windows Vista [desktop apps only]
Minimum supported server
Windows Server 2008 [desktop apps only]
Header
Wmcontainer.h

See also

Alphabetical List of Media Foundation Attributes

IMFAttributes::GetBlob

IMFAttributes::SetBlob

IMFPresentationDescriptor

Presentation Descriptor Attributes

ASF Header Object

Presentation Descriptors