Loads a clip and handles the nesasery events during the load operation.
Namespace:
ScreenMonkey.ClipsAssembly: ScreenMonkey.Clips (in ScreenMonkey.Clips.dll) Version: 3.2.0.0 (3.3.1.4)
Syntax
| C# |
|---|
protected void LoadMedia() |
| Visual Basic (Declaration) |
|---|
Protected Sub LoadMedia |
| Visual C++ |
|---|
protected: void LoadMedia() |
Remarks
This function calls the OnLoadClip()()() function which actually performs
to loading of the clip.
When a clip is being loaded the OnLoadClip()()() function is called and this may raise
an exception. This function sets the load status depending on whether the load succeeded or an
exception ocurred.
If a FileNotFoundException ocurrs in OnLoadClip()()()then the load status will
be se to FileNotFound. Any other exception and the LoadStatus
will be set to LoadError. If the load function succeeds then the status will
be set to Loaded.
Once loading is complete the MediaLoaded event will be fired.