This documentation is for the old version. Go to the latest Graphics Mill docs

WMReader.Metadata Property

Returns the metadata related to the opened file.

Namespace: Aurigma.GraphicsMill.Codecs
Assembly: Aurigma.GraphicsMill.Codecs.MediaProcessor (in Aurigma.GraphicsMill.Codecs.MediaProcessor.dll)

Syntax

Visual Basic
Public ReadOnly Property Metadata As MediaProcessorMetadataDictionary
C#
public MediaProcessorMetadataDictionary Metadata { get; }

Property Value

A MediaProcessorMetadataDictionary object with metadata.

Remarks

This property holds an object of the MediaProcessorMetadataDictionary type with audio or video file metadata, for example, ID3 fields.

Metadata are stored as pairs of keys and values. Keys are field identifiers, and values are actual data provided for the corresponding fields.

Examples

This example shows how to get reader properties.
Visual Basic
Private Sub GetWMReaderProperties(ByVal aReader As WMReader)
    Console.WriteLine("Framework priority: " & _
        aReader.CodecPriority.ToString())
    Console.WriteLine("Duration of the opened file: " & _
        aReader.Duration.ToString())
    Console.WriteLine("Number of frames in the opened file: " & _
        aReader.FrameCount.ToString())
    Console.WriteLine("Number of metadata fields: " & _
        aReader.Metadata.Count.ToString())
End Sub
C#
private void GetWMReaderProperties(WMReader aReader)
{
    Console.WriteLine("Framework priority: " +
        aReader.CodecPriority.ToString());
    Console.WriteLine("Duration of the opened file: " +
        aReader.Duration.ToString());
    Console.WriteLine("Number of frames in the opened file: " +
        aReader.FrameCount.ToString());
    Console.WriteLine("Number of metadata fields: " +
        aReader.Metadata.Count.ToString());
}

See Also

Reference