IMLMediaParser (Compact 7)
3/12/2014
This interface is implemented by the data source plug-in and is called by the plug-in manager to parse media items in a file.
Methods
In addition to the methods inherited from IUnknown this interface exposes the following methods.
- IMLMediaParser::Init
Initializes the media parser.
- IMLMediaParser::ExtractMetadata
Extracts the metadata from the media file, such as the music title or author, in the specified file.
- IMLMediaParser::GetEntityType
Returns the entity types in the specified media file.
- IMLMediaParser::GetKnownFileExtensions
Returns the list of file extensions supported by the media parser.
Remarks
The IMLCore object creates the media parser manager. The media parser manager reads the list of metadata parser plug-ins from the registry and calls CoCreateInstance to create all the metadata parser's objects. After the metadata parsers are created, the media parser manager calls IMLMediaParser::Init for each plug-in.
You must register your metadata parser plug-in with the Media Library for the media parser manager to create it. For more information on registering your plug-in, see Media Library Registry Settings.
When to Implement
Implement this interface when you want to extract metadata from files not supported by the built-in media parsers.
Requirements
Header |
mlibdll.h, |
Library |
mlibdll.lib |