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

MediaFormatManager Class

This is a class factory that creates a reader for the specified video file using Media Processor add-on.

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

Syntax

Visual Basic
Public NotInheritable Class MediaFormatManager
C#
public sealed class MediaFormatManager

Remarks

Use this class to create a reader of the appropriate type automatically based on the type of the specified video file.

This class is an analog of the FormatManager class, but works with video files. The FormatManager will not return Media Processor readers automatically.

For the list of file formats supported by different Media Processor readers, see the System Requirements topic.

Examples

This example shows how to create a reader.
Visual Basic
'Create a reader using the class factory
Private Sub CreateReader(ByVal fileName As String)
    Try
        reader = MediaFormatManager.CreateFormatReader(fileName)
    Catch ex As System.Exception
        MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK, _
            MessageBoxIcon.Error)
    End Try
End Sub
C#
//Create a reader using the class factory
private void CreateReader(String fileName)
{
    try
    {
        reader = MediaFormatManager.CreateFormatReader(fileName);
    }
    catch(System.Exception ex)
    {
        MessageBox.Show(ex.Message, "Error", MessageBoxButtons.OK,
            MessageBoxIcon.Error);
    }

}

Inheritance Hierarchy

System.Object
L Aurigma.GraphicsMill.Codecs.MediaFormatManager

Thread Safety

Static members of this type are safe for multi-threaded operations. Instance members of this type are safe for multi-threaded operations.

Object Model




See Also

Reference