|
-
Jul 17th, 2000, 08:55 AM
#1
Thread Starter
New Member
Hi,
I use IMediaControl to display an AVI file it works perfectly when I instanciate my frmVidViewer Class (the class where I display the AVI)
but here is my plbm :
Sometimes I need to retrieve only the length of the AVI, here is my code
Set MControl = New FilgraphManager
MControl.RenderFile (FName)
Set MPosition = MControl
sLength = Int(MPosition.Duration)
Set MControl = Nothing
Set MPosition = Nothing
then in the same Class, I instanciate my viewer
Dim MyVidViewer As New frmVidViewer
Inside the viewer I instanciate all the DirectShow object I need but it doesn't work anymore.
The following lime :
MediaControl.RenderFile (FName)
return the following error :
Err.descriptiom : Automation Error
(Err.number - vbObjectError) : 534
Does someone know where the mystery is ?
Gilles
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|