Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents  
 
VideoPlayer.LoadForEAX method 
 
Remarks 
 
Loads a video from the specified file converting the audio track to Mono for use with EAX effects. 
Video loading and rendering is performed through DirectShow so, in order to load a certain video format (like MPEG, MP4, AVI, etc.) the specific codec must be available on the target system or calls to this method would fail. One of the best packages containing most audio and video codecs for DirectShow is K-Lite Codec Pack and can be downloaded for free from the following link
 
A successful call to this method will fire the SoundLoaded event. 
 
For further details about the use of the embedded video player see the VideoPlayer object section. 
For details about video clips rendering refer to the How to play video files through DirectShow tutorial. 
 
 
Syntax 
 
[Visual Basic] 
control.VideoPlayer.LoadForEAX
nPlayer as Integer
strFilename as String 
 
[C++] 
short control.VideoPlayer.LoadForEAX
short nPlayer
LPCTSTR strFilename 
);
 
 
 
Parameter
Description
 
 
nPlayer
Number representing the zero-based index of the player that will use the video player.
strFilename
String containing the name of the song file to load. It can be a full path name (ex. c:\mysounds\sound.mp3) or a filename (ex: sound.mp3) if the SoundsDirectory property has already been specified.
 
 
Return value 
 
Value
Meaning
 
 
Negative value
An error occurred, check the LastError property value in order to get the error code
enumErrorCodes.ERR_NOERROR (0)
The method call was successful
 
 
 
 
 
 
 
 
Copyright © 2001-2008 MultiMedia Soft 
Return to Table of contents