Expand Minimize

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 fieldData typeSizeDescription
Commands CountDWORD4 bytesNumber of script commands
Command Type, CommandsBYTE[]VariesArray 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 fieldData typeSizeDescription
Command Name LengthDWORD4 bytesSize of the command string, in bytes, including the NULL character.
Command NameWCHAR[]VariesNull-terminated string that contains the script command.
Command Type Name LengthDWORD4 bytesSize of the command type string, in bytes, including the NULL character.
Command Type NameWCHAR[] VariesNull-terminated string that contains the command type.
Presentation TimeDWORD4 bytesPresentation time of the command in milliseconds.

 

Requirements

Minimum supported client

Windows Vista [desktop apps only]

Minimum supported server

Windows Server 2008 [desktop apps only]

Header

Wmcontainer.h

See also

IMFAttributes::GetBlob
IMFAttributes::SetBlob
IMFPresentationDescriptor
Presentation Descriptor Attributes
ASF Header Object
Presentation Descriptors

 

 

Community Additions

ADD
Show:
© 2014 Microsoft