VideoEdit Gold ActiveX Control

GetFileDuration Method

Description

Get the specific file duration. The file include video or audio files.

Syntax

Public Function GetFileDuration ( _
   ByVal strFileName as string
) As Double

 

Parameters

strFileName
    the file you want get the duration

 

Return Value

Return duration of file
 

Example

[Visual Basic Syntax]
Dur= VideoEdit1.GetFileDuration ("c:\hello.mpg")