Metadata Editor Object

[The feature associated with this page, Windows Media Format 11 SDK, is a legacy feature. It has been superseded by Source Reader and Sink Writer. Source Reader and Sink Writer have been optimized for Windows 10 and Windows 11. Microsoft strongly recommends that new code use Source Reader and Sink Writer instead of Windows Media Format 11 SDK, when possible. Microsoft suggests that existing code that uses the legacy APIs be rewritten to use the new APIs if possible.]

The metadata editor object is used to edit information stored in the header section of ASF files. The most common things manipulated by this object are metadata attributes. Additionally, the metadata editor deals with markers and script commands. The only time you need to use the metadata editor is when you want to edit the header of an existing file without playing it.

The metadata editor object is created by the function WMCreateEditor, which sets a pointer to an IWMMetadataEditor interface. The other interfaces of the metadata editor object can be obtained by calling the QueryInterface method.

The following interfaces are supported by the metadata editor object.

Interface Description
IWMDRMEditor Enables editing applications to examine the DRM properties of an ASF file without having any rights to play the protected content.
IWMHeaderInfo Manipulates attributes, markers, and script commands in the header.
IWMHeaderInfo2 Retrieves codec information. Inherits all of the methods of IWMHeaderInfo.
IWMHeaderInfo3 Provides advanced support for attributes, including large attributes, multiple languages, and duplicate attribute names. Inherits all of the methods of IWMHeaderInfo and IWMHeaderInfo2.
IWMMetadataEditor Opens, closes, and saves changes to the header of an ASF file.
IWMMetadataEditor2 Opens an ASF file for header editing with multiple file access and sharing options. Inherits all of the methods of IWMMetadataEditor.

 

Markers

Metadata

Objects

Script Commands

Working with Metadata