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)
Public NotInheritable Class MediaFormatManager
public sealed class MediaFormatManager
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.
'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
//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); } }