OpenMediaFile opens a video file using DirectShow which allows you to load AVI, Mpeg, WMV and other DirectShow supported formats.
It opens the file, but doesn’t actually get the image. To get a frame use LoadFromMediaFile method.
To close the media file use CloseMediaFile.
Assembly: IEvolution2 (in IEvolution2.dll) Version: 10.1.0.0
Syntax
C# | Visual Basic | Visual C++ |
public int OpenMediaFile( string fileName )
Public Function OpenMediaFile ( _ fileName As String _ ) As Integer
public: int OpenMediaFile( String^ fileName )
Parameters
- fileName
- String
The media file name (i.e. "film.mpeg").